> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hooked.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Account

> Delete an analyzed account and its associated data

## Overview

This endpoint permanently deletes an analyzed account and all its associated data from your team's workspace.

### Path Parameters

<ParamField path="accountId" type="string" required>
  The internal account ID to delete
</ParamField>

### Response

<ResponseField name="success" type="boolean">
  Indicates if the request was successful
</ResponseField>

<ResponseField name="message" type="string">
  Status message
</ResponseField>

<ResponseField name="data" type="object">
  <Expandable title="data">
    <ResponseField name="id" type="string">
      The deleted account ID
    </ResponseField>

    <ResponseField name="deleted" type="boolean">
      Confirmation of deletion
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.hooked.so/v1/social/account/clx123abc" \
    -H "x-api-key: your_api_key_here"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.hooked.so/v1/social/account/clx123abc', {
    method: 'DELETE',
    headers: {
      'x-api-key': 'your_api_key_here'
    }
  });

  const data = await response.json();
  if (data.success) {
    console.log('Account deleted successfully');
  }
  ```

  ```python Python theme={null}
  import requests

  response = requests.delete(
      'https://api.hooked.so/v1/social/account/clx123abc',
      headers={'x-api-key': 'your_api_key_here'}
  )

  if response.json()['success']:
      print('Account deleted successfully')
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "message": "Account deleted successfully",
    "data": {
      "id": "clx123abc",
      "deleted": true
    }
  }
  ```
</ResponseExample>

<Warning>
  This action is permanent and cannot be undone. All associated data including videos and analytics will be deleted.
</Warning>

<Note>
  You can only delete accounts that belong to your team. Attempting to delete another team's account will result in a 403 Forbidden error.
</Note>


## OpenAPI

````yaml DELETE /v1/social/account/{accountId}
openapi: 3.0.0
info:
  title: Hooked API
  version: 1.0.0
  description: AI Video Generation API
servers:
  - url: https://api.hooked.so
security:
  - ApiKeyAuth: []
paths:
  /v1/social/account/{accountId}:
    delete:
      tags:
        - Social Accounts
      summary: Delete Account
      description: Delete an analyzed account and its associated data
      operationId: deleteSocialAccount
      parameters:
        - name: accountId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Account deleted successfully
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````