Skip to content

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

NameTypeScopes
Authorizationrequiredstringgist:write

Path parameters

NameTypeDescription
uuidrequiredstringThe gist's UUID.

Responses

StatusBodyDescription
204The gist was deleted.
401ErrorMissing or invalid credentials.
403ErrorThe token lacks the required scope or permission.
404ErrorThe requested resource does not exist (or is not visible to the caller).