> 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. 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}](/generations/get-generation-status.md) to retrieve the `gammaId` from a completed generation
* [POST /gammas/{gammaId}/archive](/management/archive-gamma.md) if you want to archive without deleting
* [Error codes](/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
