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

# Delete style

> Delete a cached tweet style profile by username to free up your style analysis slots

<blockquote className="agent-llms-directive">
  For the complete documentation index, see <a href="/llms.txt">llms.txt</a>.
</blockquote>

<Callout icon="circle-check" color="#16a34a">
  **Free** - does not consume credits
</Callout>

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://xquik.com/api/v1/styles/elonmusk \
    -H "x-api-key: xq_YOUR_KEY_HERE" -w "\n%{http_code}"
  ```

  ```javascript Node.js theme={null}
  const username = "elonmusk";
  const response = await fetch(`https://xquik.com/api/v1/styles/${username}`, {
    method: "DELETE",
    headers: {
      "x-api-key": "xq_YOUR_KEY_HERE",
    },
  });
  console.log(response.ok); // true on success (204 No Content)
  ```

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

  username = "elonmusk"
  response = requests.delete(
      f"https://xquik.com/api/v1/styles/{username}",
      headers={"x-api-key": "xq_YOUR_KEY_HERE"},
  )
  response.raise_for_status()  # 204 No Content on success
  ```

  ```go Go theme={null}
  package main

  import (
      "fmt"
      "net/http"
  )

  func main() {
      username := "elonmusk"
      req, err := http.NewRequest("DELETE", "https://xquik.com/api/v1/styles/"+username, nil)
      if err != nil {
          panic(err)
      }
      req.Header.Set("x-api-key", "xq_YOUR_KEY_HERE")

      resp, err := http.DefaultClient.Do(req)
      if err != nil {
          panic(err)
      }
      defer resp.Body.Close()

      fmt.Println(resp.StatusCode) // 204 on success
  }
  ```
</CodeGroup>

## Path parameters

<ParamField path="id" type="string" required>
  Style profile ID or X username whose cached style to delete.
</ParamField>

## Headers

<ParamField header="x-api-key" type="string" required>
  Your API key. Session cookie authentication is also supported. Generate a key from the [dashboard](https://xquik.com/dashboard).
</ParamField>

## Response

<Tabs>
  <Tab title="204 No Content">
    Empty response body. The style was successfully deleted.
  </Tab>

  <Tab title="401 Unauthenticated">
    ```json theme={null}
    { "error": "unauthenticated", "message": "Missing or invalid API key" }
    ```

    Missing or invalid API key.
  </Tab>

  <Tab title="404 Not Found">
    ```json theme={null}
    { "error": "style_not_found", "message": "No cached style found for this username" }
    ```

    No cached style exists for this username, or it belongs to a different account.
  </Tab>

  <Tab title="429 Rate Limited">
    ```json theme={null}
    { "error": "rate_limit_exceeded", "message": "Too many requests. Try again later.", "retryAfter": 60 }
    ```

    Too many requests. Wait for the `Retry-After` header before retrying.
  </Tab>
</Tabs>

<Info>
  The cached tweets and style data are permanently removed. Use [Analyze & Cache Style](/api-reference/styles/analyze) to re-fetch if needed.
</Info>

<Note>
  **Related:** [List Styles](/api-reference/styles/list) to verify the style was removed, or [Analyze & Cache Style](/api-reference/styles/analyze) to cache a new style.
</Note>
