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/17642328ead24b51867165985996d04b29310337/files/1/ HTTP/1.1
Host: sentry.io
Authorization: Bearer <token>
HTTP/1.1 204 NO CONTENT
Content-Length: 0
X-XSS-Protection: 1; mode=block
Content-Language: en
X-Content-Type-Options: nosniff
Vary: Accept-Language, Cookie
Allow: GET, PUT, DELETE, HEAD, OPTIONS
X-Frame-Options: deny