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/9e8717876c6850c3fbaf6d90711218492c4e2856/files/1/ HTTP/1.1
Authorization: Basic ___ENCODED_API_KEY___
Host: app.getsentry.com
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