Delete a gist
DELETE
/gists/{uuid}Deletes a gist owned by the authenticated caller, removing both its repository and database row.
A private gist resolves only for its owner with a gist:read-capable
token; other callers get 404. A visible gist the caller doesn't own
returns 403.
Request
Headers
| Name | Type | Scopes |
|---|---|---|
Authorizationrequired | string | gist:write |
Path parameters
| Name | Type | Description |
|---|---|---|
uuidrequired | string | The gist's UUID. |
Responses
| Status | Body | Description |
|---|---|---|
204 | — | The gist was deleted. |
401 | Error | Missing or invalid credentials. |
403 | Error | The token lacks the required scope or permission. |
404 | Error | The requested resource does not exist (or is not visible to the caller). |