Delete a File

DELETE /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/

Permanently remove a file from a release.

This will also remove the physical file from storage.

Path Parameters:
  • organization_slug (string) – the slug of the organization the release belongs to.
  • project_slug (string) – the slug of the project to delete the file of.
  • version (string) – the version identifier of the release.
  • file_id (string) – the ID of the file to delete.
Authentication:required
Method:DELETE
Path:/api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/

Example

DELETE /api/0/projects/the-interstellar-jurisdiction/pump-station/releases/e48e7b5b90327ea1a4d1a4360c735eee7b536f82/files/1/ HTTP/1.1
Authorization: Bearer {base64-encoded-key-here}
Host: sentry.io
HTTP/1.1 204 NO CONTENT
Allow: GET, PUT, DELETE, HEAD, OPTIONS
Content-Language: en
Content-Length: 0
Vary: Accept-Language, Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block