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

# Delete files

Deletes files from the media library.

> [!NOTE]
>
> Needs the Admin or Member role in the workspace.

> [!WARNING]
>
> Deletion is permanent.

**workspace** `string` *required*

The workspace UUID. Get it from [List workspaces](https://support.paddypost.com/api-reference/workspaces/list-workspaces.md).

**items** `string[]` *required*

File ids or UUIDs, up to 500.

```bash cURL theme={null}
curl -X DELETE "https://app.paddypost.com/paddypost/api/WORKSPACE_UUID/media" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "items": [
    "c41a\u2026"
  ]
}'
```

```json 200 theme={null}
{
  "success": true
}
```


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