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

# Reset Bucket Config (Legacy)

> Reset to Tornado default storage (deprecated)

<Warning>
  **Deprecated**: This endpoint only supports S3-compatible storage. Use the dedicated endpoints instead:

  * [`DELETE /user/s3`](/api-reference/user/delete-s3) for S3-compatible storage
  * [`DELETE /user/blob`](/api-reference/user/delete-blob) for Azure Blob Storage
  * [`DELETE /user/gcs`](/api-reference/user/delete-gcs) for Google Cloud Storage
  * [`DELETE /user/oss`](/api-reference/user/delete-oss) for Alibaba Cloud OSS
</Warning>

## Overview

Remove your custom S3 bucket configuration and revert to using Tornado's default managed storage.

## Header Parameters

<ParamField header="x-api-key" type="string" required>
  Your API key for authentication
</ParamField>

## Request

No request body required. Simply send a DELETE request with your API key.

## Response

<ResponseField name="message" type="string">
  Success confirmation message
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.tornadoapi.io/user/bucket" \
    -H "x-api-key: sk_your_api_key"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.tornadoapi.io/user/bucket', {
    method: 'DELETE',
    headers: {
      'x-api-key': 'sk_your_api_key'
    }
  });

  const data = await response.json();
  console.log(data);
  ```

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

  response = requests.delete(
      'https://api.tornadoapi.io/user/bucket',
      headers={'x-api-key': 'sk_your_api_key'}
  )

  print(response.json())
  ```

  ```json Response theme={null}
  {
    "message": "Bucket configuration reset to default"
  }
  ```
</CodeGroup>

## Success Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "message": "Bucket configuration reset to default"
  }
  ```
</ResponseExample>

## Error Responses

<ResponseExample>
  ```json 401 Unauthorized theme={null}
  {
    "error": "Missing x-api-key header"
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
    "error": "Invalid API Key"
  }
  ```
</ResponseExample>

## When to Use

* You want to stop using your own S3 bucket
* Your bucket credentials have changed and you want to reconfigure
* You're troubleshooting storage issues

<Note>
  After resetting, all new downloads will be stored in Tornado's managed storage. Existing files in your bucket remain untouched.
</Note>
