# Delete A Video

> Part of the [SpatialGen API documentation](/index.md). [HTML version of this page](/api/07_delete_video/).

Delete a video in your library

## API context

-   API requests use `https://spatialgen.com` with the `/api` path prefix, included once.
-   Authenticate requests to SpatialGen API endpoints with the `X-SPATIALGEN-APPKEY` HTTP header.
-   Use a key from the workspace that owns the requested resources. Follow the roles and scopes specified for each endpoint below.
-   Keep `admin` and `upload` keys on a trusted backend. `readonly` keys may be used in client apps for permitted read operations.
-   Presigned upload URLs have their own authorization. Do not send your SpatialGen API key to those URLs.

See the [API key guide](/guides/get-started.md) for roles, key creation, expiration, revocation, and rotation.

* * *

**DELETE** `/videos/<video-id>/delete`

Deletes a video from your library. Use the video ID in the URL.

Required API Key Role

`admin`

### Example request

delete.js

```js
fetch('https://spatialgen.com/api/videos/<video-id>/delete', {
    method: 'DELETE',
    headers: {
        'X-SPATIALGEN-APPKEY': apiKey,
    }
})
```

### Example Response

response.json

```json
{"status":204 }
```
