---
title: "Delete a license for an agent"
method: DELETE
path: "/api/v1/projects/{projectId}/licenses/{licenseId}"
tags: ["Agent Licenses"]
---

# Delete a license for an agent

`DELETE /api/v1/projects/{projectId}/licenses/{licenseId}`

Deletes a specific license that belongs to a specific agent.

## Path parameters

- `projectId` integer, required
- `licenseId` integer, required

## Response `200`

Deleted agent license

- object
  - `status` 'error' | 'success' — The status of the response
  - `data` object
    - `deleted` boolean — The agent license has been deleted

## Other responses

- `401` — API Token is either missing or invalid
- `404` — Agent license not found
- `422` — Bad Argument
- `500` — Internal Server Error

---

[API](https://skmtc.net/poll-the-people/apis/customgpt-ai.md) · [All operations](https://skmtc.net/poll-the-people/apis/customgpt-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poll-the-people/customgpt-ai/revisions/b80e6dfcf78d/schema)
