# Delete a project

`DELETE https://api.vidmoat.com/v1/projects/{id}`

- Scope: `projects.write`
- Cost: Free

Delete a project and its render jobs. This cannot be undone.

### Path parameters

- `id` (string, required): The project id.

## Response

Returns `200`.

### Response fields

- `id` (string): The deleted project's id.
- `deleted` (boolean): Always `true`: a project that does not exist, or is not yours, is a 404 instead.

> **Tip: With a test key.** Test keys delete for real.

## Errors

Besides the errors any request can get ([authentication](https://developer.vidmoat.com/developer/docs/authentication#when-a-request-is-refused), [rate limits](https://developer.vidmoat.com/developer/docs/rate-limits)):

| Status | Code | When |
| --- | --- | --- |
| 404 | [`not_found`](https://developer.vidmoat.com/developer/docs/errors#not_found) | No such project, or it is not yours. The two are indistinguishable on purpose. |

## Request examples

```bash curl
curl -X DELETE https://api.vidmoat.com/v1/projects/$ID \
  -H "Authorization: Bearer $VIDMOAT_KEY"
```

```js Node
const ID = 'YOUR_PROJECT_ID';

const res = await fetch(`https://api.vidmoat.com/v1/projects/${ID}`, {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.VIDMOAT_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(data.error?.message ?? `HTTP ${res.status}`);
console.log(data);
```

```python Python
import os
import requests

ID = "YOUR_PROJECT_ID"

res = requests.delete(
    f"https://api.vidmoat.com/v1/projects/{ID}",
    headers={"Authorization": f"Bearer {os.environ['VIDMOAT_KEY']}"},
    timeout=60,
)
res.raise_for_status()
print(res.json())
```

## Example response

```json
{ "id": "cm1abc", "deleted": true }
```

---

Source: https://developer.vidmoat.com/developer/docs/api/projects/delete-project
Previous: [Update a project](https://developer.vidmoat.com/developer/docs/api/projects/update-project.md)
Next: [Apply commands](https://developer.vidmoat.com/developer/docs/api/projects/apply-commands.md)
All documentation: https://developer.vidmoat.com/llms-full.txt
