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

# Delete Clip

> Permanently delete a clip

> **For AI agents:** a documentation index is at [/llms.txt](https://docs.reap.video/llms.txt). Every page is also available as markdown, just append `.md` to the URL.

## Overview

Permanently delete a clip and its exported video file. This action cannot be undone.

## Rate Limiting

This endpoint allows **30 requests per minute per API key**. Each endpoint has its own budget, so this allowance is not shared with the rest of the API — see [Rate limiting](https://docs.reap.video/api-reference/2_authentication.md#rate-limiting).

> [!NOTE]
>
> This permanently deletes the clip and its exported video file. Cannot delete clips that are still processing.

## Response

**clipId** `string`

ID of the deleted clip

**deleted** `boolean`

Always `true` on success

## Example Request

```bash cURL theme={"system"}
curl -X DELETE "https://public.reap.video/api/v1/automation/delete-clip?projectId=65f1a2b3c4d5e6f7a8b9c0d2&clipId=65f1a2b3c4d5e6f7a8b9c0d4" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
```

```javascript JavaScript theme={"system"}
const projectId = '65f1a2b3c4d5e6f7a8b9c0d2';
const clipId = '65f1a2b3c4d5e6f7a8b9c0d4';
const response = await fetch(`https://public.reap.video/api/v1/automation/delete-clip?projectId=${projectId}&clipId=${clipId}`, {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(`Deleted: ${data.deleted}`);
```

```python Python theme={"system"}
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
}

project_id = '65f1a2b3c4d5e6f7a8b9c0d2'
clip_id = '65f1a2b3c4d5e6f7a8b9c0d4'
response = requests.delete(
    f'https://public.reap.video/api/v1/automation/delete-clip?projectId={project_id}&clipId={clip_id}',
    headers=headers
)

data = response.json()
print(f"Deleted: {data['deleted']}")
```

```php PHP theme={"system"}
<?php
$projectId = '65f1a2b3c4d5e6f7a8b9c0d2';
$clipId = '65f1a2b3c4d5e6f7a8b9c0d4';
$url = 'https://public.reap.video/api/v1/automation/delete-clip?projectId=' . $projectId . '&clipId=' . $clipId;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer YOUR_API_KEY',
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
echo 'Deleted: ' . ($data['deleted'] ? 'true' : 'false') . "\n";
?>
```

```go Go theme={"system"}
package main
import (
    "fmt"
    "io/ioutil"
    "net/http"
)
func main() {
    projectId := "65f1a2b3c4d5e6f7a8b9c0d2"
    clipId := "65f1a2b3c4d5e6f7a8b9c0d4"
    url := fmt.Sprintf("https://public.reap.video/api/v1/automation/delete-clip?projectId=%s&clipId=%s", projectId, clipId)
    req, _ := http.NewRequest("DELETE", url, nil)
    req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
    req.Header.Set("Content-Type", "application/json")
    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()
    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Println(string(body))
}
```

```java Java theme={"system"}
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
public class DeleteClipExample {
    public static void main(String[] args) throws Exception {
        String projectId = "65f1a2b3c4d5e6f7a8b9c0d2";
        String clipId = "65f1a2b3c4d5e6f7a8b9c0d4";
        URL url = new URL("https://public.reap.video/api/v1/automation/delete-clip?projectId=" + projectId + "&clipId=" + clipId);
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setRequestMethod("DELETE");
        conn.setRequestProperty("Authorization", "Bearer YOUR_API_KEY");
        conn.setRequestProperty("Content-Type", "application/json");
        BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream(), "utf-8"));
        StringBuilder response = new StringBuilder();
        String responseLine;
        while ((responseLine = br.readLine()) != null) {
            response.append(responseLine.trim());
        }
        System.out.println(response.toString());
    }
}
```

## Example Response

**200 OK**

```json theme={"system"}
{
  "clipId": "65f1a2b3c4d5e6f7a8b9c0d4",
  "deleted": true
}
```

**400 Bad Request**

```json theme={"system"}
{
  "detail": "Cannot delete a clip that is still processing"
}
```

**401 Unauthorized**

```json theme={"system"}
{
  "detail": "Unauthorized - Invalid or missing API key"
}
```

**404 Not Found**

```json theme={"system"}
{
  "detail": "Clip not found"
}
```

**429 Too Many Requests**

```json theme={"system"}
{
  "error": "Rate limit exceeded: 30 per 1 minute"
}
```


## OpenAPI

````yaml DELETE /automation/delete-clip
openapi: 3.1.0
info:
  title: Reap Automation API
  description: AI-powered video processing automation API
  version: 1.0.0
servers:
  - url: https://public.reap.video/api/v1
security:
  - bearerAuth: []
paths:
  /automation/delete-clip:
    delete:
      summary: Delete Clip
      description: Permanently delete a clip
      operationId: deleteClip
      parameters:
        - $ref: '#/components/parameters/projectId'
        - $ref: '#/components/parameters/clipId'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteClipResponse'
components:
  parameters:
    projectId:
      name: projectId
      in: query
      required: true
      schema:
        type: string
      description: Unique identifier of the project
    clipId:
      name: clipId
      in: query
      required: true
      schema:
        type: string
      description: Unique identifier of the clip
  schemas:
    DeleteClipResponse:
      type: object
      properties:
        clipId:
          type: string
        deleted:
          type: boolean
          default: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.