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

# Delete Collection

Deletes a collection by predicted address with signature verification. Only the creator or game owner can delete a collection.

` DELETE /collections `

Delete Collection

Deletes a collection by predicted address with signature verification. Only the creator or game owner can delete a collection.

## Servers

- ` https://createkit.b3.fun ` — Production server

## Request body (required)

Content type: ` application/json `

- ` value `: type ` object ` — Request to delete a collection

  - Required fields: ` predictedAddress `, ` message `, ` signature `

  - ` predictedAddress `: type ` string ` — Predicted address of collection to delete

    - pattern: ` "^0x[a-fA-F0-9]{40}$" `

  - ` message `: type ` string ` — Message that was signed (e.g., "Delete 0x123...")

  - ` signature `: type ` string ` — EIP-191 signature of the message

## Responses

### ` 200 ` — Collection deleted successfully

Content type: ` application/json `

- ` value `: type ` object `

  - ` success `: type ` boolean `

    - example: ` true `

  - ` message `: type ` string ` — Success message

### ` 400 ` — Bad Request - Missing required fields

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` success `, ` error `

  - ` success `: type ` boolean `

    - example: ` false `

  - ` error `: type ` string ` — Error message describing what went wrong

### ` 403 ` — Forbidden - Invalid signature or unauthorized

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` success `, ` error `

  - ` success `: type ` boolean `

    - example: ` false `

  - ` error `: type ` string ` — Error message describing what went wrong

### ` 404 ` — Collection not found

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` success `, ` error `

  - ` success `: type ` boolean `

    - example: ` false `

  - ` error `: type ` string ` — Error message describing what went wrong

## Request examples

### cURL

```curl
curl -X DELETE 'https://createkit.b3.fun/collections' \
  -H 'Content-Type: application/json' \
  -d '{
  "predictedAddress": "string",
  "message": "string",
  "signature": "string"
}'
```

### JavaScript

```javascript
const response = await fetch('https://createkit.b3.fun/collections', {
  method: 'DELETE',
  headers: {
      "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "predictedAddress": "string",
    "message": "string",
    "signature": "string"
  })
});

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

### Python

```python
import requests

response = requests.delete('https://createkit.b3.fun/collections', json={
  "predictedAddress": "string",
  "message": "string",
  "signature": "string"
})
print(response.json())
```