> For the complete documentation index, see [llms.txt](https://developers.gamma.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.gamma.app/management/delete-gamma.md).

# DELETE /gammas/{gammaId}

Delete a Gamma document. Requires a workspace admin role on the API key's workspace.

Delete a Gamma document. Gamma archives it automatically first if needed, then marks it for deletion.

## Delete a Gamma

> Deletes a Gamma document. Requires workspace admin role on the workspace the API key belongs to. The Gamma is auto-archived first if not already archived, so a single call handles the full archive-then-delete transition. The Gamma becomes immediately inaccessible and is removed from all workspace views. After deletion, the Gamma is no longer addressable via the API; subsequent requests for the same ID return the same response as for a non-existent Gamma.

```json
{"openapi":"3.0.0","info":{"title":"Gamma Public API","version":"1.0"},"tags":[{"name":"public-api","description":"Public API endpoints for external integrations"}],"servers":[{"url":"https://public-api.gamma.app","description":"Production"}],"security":[{"api-key":[]}],"components":{"securitySchemes":{"api-key":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"API key for authentication"}},"schemas":{"DeleteGammaResponse":{"type":"object","properties":{"status":{"type":"string","description":"Status of the deletion request. Always `deleted` on success.","enum":["deleted"]},"gammaId":{"type":"string","description":"The ID of the deleted Gamma"},"message":{"type":"string","description":"Customer-facing message confirming the Gamma has been deleted."}},"required":["status","gammaId","message"]}}},"paths":{"/v1.0/gammas/{gammaId}":{"delete":{"description":"Deletes a Gamma document. Requires workspace admin role on the workspace the API key belongs to. The Gamma is auto-archived first if not already archived, so a single call handles the full archive-then-delete transition. The Gamma becomes immediately inaccessible and is removed from all workspace views. After deletion, the Gamma is no longer addressable via the API; subsequent requests for the same ID return the same response as for a non-existent Gamma.","operationId":"deleteGamma","parameters":[{"name":"gammaId","required":true,"in":"path","description":"The unique ID of the Gamma to delete","schema":{"type":"string"}}],"responses":{"200":{"description":"Gamma deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteGammaResponse"}}}},"400":{"description":"Invalid request parameters"},"401":{"description":"Invalid or missing API key"},"403":{"description":"Access denied - workspace admin role required"}},"summary":"Delete a Gamma","tags":["public-api"]}}}}
```

{% hint style="warning" %}
Deletion requires a workspace admin role on the API key's workspace. A successful response returns `status: deleted`. The Gamma becomes immediately inaccessible and is no longer addressable via the API.
{% endhint %}

## Related

* [GET /generations/{id}](https://developers.gamma.app/generations-classic/get-generation-status.md) to retrieve the `gammaId` from a completed generation
* [POST /gammas/{gammaId}/archive](https://developers.gamma.app/management/archive-gamma.md) if you want to archive without deleting
* [Error codes](https://developers.gamma.app/reference/error-codes.md) for authentication and permission failures


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.gamma.app/management/delete-gamma.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
