> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.movieknight.site/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.movieknight.site/_mcp/server.

# Delete collection

DELETE {{baseUrl}}/api/collections/{{collectionId}}

**What:** Owner-only delete. The 3 default lists cannot be deleted.

**Auth:** Bearer token required.

**Path params:**

| Param | Type | Required | Description | Example |
|---|---|---|---|---|
| id | string | yes | Collection ObjectId. | `66b0c1d2e3f4a5b6c7d8e9f5` |

**Returns:** `data = { deleted: true, id }`.

Reference: https://apidocs.movieknight.site/movie-knight-api/collections/delete-collection

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/collections/{{collectionId}}:
    delete:
      operationId: delete-collection
      summary: Delete collection
      description: >-
        **What:** Owner-only delete. The 3 default lists cannot be deleted.


        **Auth:** Bearer token required.


        **Path params:**


        | Param | Type | Required | Description | Example |

        |---|---|---|---|---|

        | id | string | yes | Collection ObjectId. | `66b0c1d2e3f4a5b6c7d8e9f5`
        |


        **Returns:** `data = { deleted: true, id }`.
      tags:
        - subpackage_collections
      parameters:
        - name: '{collectionId'
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Collections_Delete
                  collection_Response_200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestBadRequestError
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestNotFoundError
servers:
  - url: '{{baseUrl}}'
    description: '{{baseUrl}}'
components:
  schemas:
    ApiCollectionsCollectionIdDeleteResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        id:
          type: string
        deleted:
          type: boolean
      required:
        - id
        - deleted
      title: >-
        ApiCollectionsCollectionIdDeleteResponsesContentApplicationJsonSchemaData
    Collections_Delete collection_Response_200:
      type: object
      properties:
        ok:
          type: boolean
        data:
          $ref: >-
            #/components/schemas/ApiCollectionsCollectionIdDeleteResponsesContentApplicationJsonSchemaData
      required:
        - ok
        - data
      title: Collections_Delete collection_Response_200
    DeleteApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestBadRequestError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: DeleteApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestBadRequestError
    DeleteApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestNotFoundError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: DeleteApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestNotFoundError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "ok": true,
  "data": {
    "id": "642f1a3b9c1e4d5f67890abc",
    "deleted": true
  }
}
```

**SDK Code**

```python Collections_Delete collection_example
import requests

url = "https://{{baseurl}}/api/collections/%7BcollectionId%7D"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
```

```javascript Collections_Delete collection_example
const url = 'https://{{baseurl}}/api/collections/%7BcollectionId%7D';
const options = {
  method: 'DELETE',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Collections_Delete collection_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://{{baseurl}}/api/collections/%7BcollectionId%7D"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("DELETE", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Collections_Delete collection_example
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/api/collections/%7BcollectionId%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java Collections_Delete collection_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://{{baseurl}}/api/collections/%7BcollectionId%7D")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php Collections_Delete collection_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://{{baseurl}}/api/collections/%7BcollectionId%7D', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Collections_Delete collection_example
using RestSharp;

var client = new RestClient("https://{{baseurl}}/api/collections/%7BcollectionId%7D");
var request = new RestRequest(Method.DELETE);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Collections_Delete collection_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/api/collections/%7BcollectionId%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```