# app.tempomusic.actor.deleteAccount

> Published by [lexicons.tempomusic.fan](https://lexicon.garden/identity/did:plc:pxsuqmultto34oks44m2lgxm)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.actor.deleteAccount)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.actor.deleteAccount/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.actor.deleteAccount/examples)

## Definitions

### `app.tempomusic.actor.deleteAccount`

**Type**: `procedure`

Schedule the requesting viewer's account for deletion. Soft-deletes the profile and cascades soft-delete on every post, reply and like owned by the viewer in a single transaction. The viewer can log back in within 30 days and call restoreAccount to undo. After 30 days the account is hard-deleted irreversibly and the content is anonymised. See ADR-009 for the full retention lifecycle.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

#### Errors

- **AlreadyDeleted**: The viewer's profile is already in the soft-deleted state. Call restoreAccount first if the intent was to extend the window, or wait for the 30-day hard-delete.

## Raw Schema

```json
{
  "id": "app.tempomusic.actor.deleteAccount",
  "defs": {
    "main": {
      "type": "procedure",
      "errors": [
        {
          "name": "AlreadyDeleted",
          "description": "The viewer's profile is already in the soft-deleted state. Call restoreAccount first if the intent was to extend the window, or wait for the 30-day hard-delete."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "properties": {}
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "viewer"
        ],
        "properties": {
          "viewer": {
            "type": "string",
            "format": "did",
            "description": "DID of the requesting viewer whose account is being deleted. Must match the authenticated principal."
          }
        }
      },
      "description": "Schedule the requesting viewer's account for deletion. Soft-deletes the profile and cascades soft-delete on every post, reply and like owned by the viewer in a single transaction. The viewer can log back in within 30 days and call restoreAccount to undo. After 30 days the account is hard-deleted irreversibly and the content is anonymised. See ADR-009 for the full retention lifecycle."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
