> For the complete documentation index, see [llms.txt](https://ryan-44.gitbook.io/portrait/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryan-44.gitbook.io/portrait/portrait-sdk/user-portraits/write/activatekillswitch.md).

# activateKillSwitch()

```typescript
  /**
   * Kill a User Portrait - Use with caution: this is a permanent and irreversible action.
   *
   * @param {UserPortraitAddress | UserPortraitENSName} identity - The identity of the user that the user would like to kill their Portrait.
   *
   * @remarks
   * Killing a Portrait is a permanent action. Once a Portrait is killed, it cannot be recovered.
   * Use this function with caution.
   * Only the owner of the Portrait can kill their Portrait.
   * It is recommended to only kill a Portrait if the corresponding private key is compromised.
   *
   * @returns {Promise<ethers.ContractTransaction>} - The transaction object, which contains the transaction hash.
   *
   * @beta
   */
  activateKillSwitch(): Promise<ethers.ContractTransaction> {
    return this.portrait.portraitUserContract.activateKillSwitch();
  }
}
```
