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

# Delete project

Delete a project. Compositions and assets are unlinked, not deleted.

` DELETE /api/projects/{id} `

Delete project

## Servers

- ` https://motioness.com ` — Production

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` sessionCookie `: ` apiKey `

  - Credential: ` better-auth.session_token ` in ` cookie `

  - Session cookie set by /api/user/signin, /api/user/signup, or the OAuth callback. Required for all authenticated endpoints.

## Parameters

### ` id ` (path, required)

- ` value `: type ` string `

  - example: ` "abc123" `

  - minLength: ` 1 `

Example:

```json
"abc123"
```

## Responses

### ` 200 ` — Project deleted

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` ok `

  - ` ok `: type ` boolean `

### ` 401 ` — Authentication required

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` error `

  - ` error `: type ` string `

### ` 404 ` — Project not found

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` error `

  - ` error `: type ` string `

## Request examples

### cURL

```curl
curl -X DELETE 'https://motioness.com/api/projects/abc123'
```

### JavaScript

```javascript
const response = await fetch('https://motioness.com/api/projects/abc123', {
  method: 'DELETE'
});

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

### Python

```python
import requests

response = requests.delete('https://motioness.com/api/projects/abc123')
print(response.json())
```