Skip to main content
DELETE
Delete File
Remove one file from a post.

Behavior

  • name is the stored file name from files[].name: 32 lowercase hex characters, a dot, and the extension (for example a1b2c3d4e5f6789012345678abcdef01.png). The extension is required.
  • Removing a file from an album keeps the rest of the post. Removing the last file deletes the post.
  • You must own the post. A team post needs that team’s access key.
  • Files in a moderated post cannot be removed and return 403 with type moderated.
  • To delete the whole post in one call, use Delete Post.
  • Shares a rate limit bucket with Delete Post: 20 requests per 30 seconds.

Examples

Responses

Errors

Authorizations

relay-key
string
header
required

Your relay key from snipp.gg/settings/relay

Path Parameters

code
string
required

Post share code.

name
string
required

Stored file name from files[].name.

Pattern: ^[a-f0-9]{32}\.[a-z0-9]{2,5}$

Response

Success

name
string
required
deleted
enum<boolean>
required
Available options:
true