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

# Delete URL

> Delete a shortened URL permanently

## Path Parameters

<ParamField path="id" type="string" required>
  URL ID
</ParamField>

<Warning>
  This action is permanent and cannot be undone. The short code will become available for reuse.
</Warning>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://snip.sa/api/urls/507f1f77bcf86cd799439011 \
    -H "X-API-Key: your_api_key_here"
  ```

  ```javascript JavaScript theme={null}
  const response = await axios.delete(
    'https://snip.sa/api/urls/507f1f77bcf86cd799439011',
    {
      headers: {
        'X-API-Key': 'your_api_key_here'
      }
    }
  );
  ```

  ```python Python theme={null}
  response = requests.delete(
      'https://snip.sa/api/urls/507f1f77bcf86cd799439011',
      headers={'X-API-Key': 'your_api_key_here'}
  )
  ```
</RequestExample>

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