# Deactivate your account

`POST /v1/me/deactivate`

Signs you out everywhere and stops notifications. Reactivate within 90 days with a link sent to your email; after that the account is deleted.

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser.

## Request body

`application/json`

```json
{
  "additionalProperties": false,
  "properties": {
    "confirm_email": {
      "maxLength": 254,
      "minLength": 3,
      "type": "string"
    }
  },
  "required": [
    "confirm_email"
  ],
  "type": "object"
}
```

## Responses

### 204

No content

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 403

reauthentication-required: the session is older than 15 minutes. csrf-origin-rejected: a cookie-authenticated change from an origin outside the web app.

Problem type: [reauthentication-required](https://docs.dlogify.com/errors/reauthentication-required.md).

### 409

sole-owner: you are the only owner of the listed organizations.

Problem type: [sole-owner](https://docs.dlogify.com/errors/sole-owner.md).

### 422

validation-failed: the request does not match the schema.

Problem type: [validation-failed](https://docs.dlogify.com/errors/validation-failed.md).

### 429

rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X POST "https://api.dlogify.com/v1/me/deactivate" \
  -H "Authorization: Bearer $DLOGIFY_SESSION" \
  -H "Content-Type: application/json" \
  --data-binary @body
```

Source: https://docs.dlogify.com/api/account/deactivateMe
