# Added RegistryService to the API (https://depot.dev/changelog/2025-03-20-registry-service)

> Published 2025-03-20

We've added the ability to list and delete images from the API.

To list images in a project:

```typescript
const headers = {Authorization: `Bearer ${process.env.DEPOT_TOKEN}`}

const result = await depot.build.v1.RegistryService.listImages(
  {projectId: 'project-id', pageSize: 100, pageToken: undefined},
  {headers},
)

console.log(result.images)
console.log(result.nextPageToken)
```

To delete images:

```typescript
const headers = {Authorization: `Bearer ${process.env.DEPOT_TOKEN}`}

await depot.build.v1.RegistryService.deleteImages(
  {projectId: 'project-id', imageTags: ['image-tag-1', 'image-tag-2']},
  {headers},
)
```

See our [API reference](/docs/api/overview) for docs on all of the Depot API endpoints.

## For AI Agents

The full site index is at [llms.txt](https://depot.dev/llms.txt). Append `.md` to any documentation, blog, changelog, or customer URL to fetch its markdown source directly.