Box Developer Documentation
Latest version

Delete archive

delete
https://api.box.com/2.0
/archives/:archive_id

Permanently deletes an archive.

Request

bearer [ACCESS_TOKEN]
application/json

Request Headers

stringin headerrequired

Version header.

Value is always 2025.0

Path Parameters

stringin pathrequired
982312

The ID of the archive.

Response

none

Returns an empty response when the archive has been deleted.

application/jsonClient error

Returns an error if the archive is not empty.

application/jsonClient error

Returned when the access token provided in the Authorization header is not recognized or not provided.

application/jsonClient error

Returns an error if the user does not have the right permissions to delete the archive.

application/jsonClient error

Returns an error if the archive is not found.

application/jsonClient error

An unexpected server error.

application/jsonClient error

An unexpected client error.

delete
Delete archive
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -i -X DELETE "https://api.box.com/2.0/archives/12345" \
     -H "box-version: 2025.0" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript Gen
await client.archives.deleteArchiveByIdV2025R0(archive.id);
Python Gen
client.archives.delete_archive_by_id_v2025_r0(archive.id)
.NET Gen
await client.Archives.DeleteArchiveByIdV2025R0Async(archiveId: archive.Id);
Swift Gen (Beta)
try await client.archives.deleteArchiveByIdV2025R0(archiveId: archive.id)
Java Gen (Beta)
client.getArchives().deleteArchiveByIdV2025R0(archive.getId())