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

# Delete Project Video

> Delete a video from a project

This endpoint allows you to delete a video from a project. The video will be marked as deleted and become unavailable.

## Path Parameters

<ParamField path="projectId" type="string" required>
  The unique identifier of the project.
</ParamField>

<ParamField path="videoId" type="string" required>
  The unique identifier of the video to delete.
</ParamField>

## Response

<ResponseField name="deleted" type="boolean" required>
  Will be true if the video was deleted successfully.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE \
    https://studio.dubformer.ai/api/projects/PROJECT_ID/videos/VIDEO_ID \
    -H 'Authorization: Bearer YOUR_API_KEY'
  ```

  ```typescript TypeScript theme={null}
  import axios from 'axios';

  const response = await axios.delete(
    'https://studio.dubformer.ai/api/projects/PROJECT_ID/videos/VIDEO_ID',
    {
      headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
        'Content-Type': 'application/json'
      }
    }
  );

  console.log(response.data); // { deleted: true }
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "deleted": true
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json Error Response theme={null}
  {
    "error": "Not Found"
  }
  ```
</ResponseExample>

## Notes

* The video must exist and belong to a project that you have access to
* The video will be marked as deleted and become unavailable
* This operation is irreversible
