Get your free beta license ↗
API operation · backups group
DELETE

/users/{name}/backups/{file}

First published 3 Oct 20260.1.0Unchanged since publication

Delete one of a customer's on-demand backup archives

Who may call it
AdministratorResellerCustomer
Token scope, any of
backupsall
Answers200 OK

An administrator or the customer can delete an archive from the customer's backups/ directory. Use the filename returned by GET /users/{name}/backups, including the .part suffix if present. The API returns 400 if the filename has an invalid format.

As a command

Run as root on the server

Parameters

namepath ·UsernameRequired
filepath ·string, matching ^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.tar\.gz(\.part)?$Required

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X DELETE "$API/users/alice/backups/urbestack-panel-20260909T101500Z.json.enc" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "deleted": "text"
}

Errors

8 errors, each a status and a sentence
400--file is required
400--name is required
400An archive is named <user>-<date>-<time>.tar.gz
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
404No archive named <file>
404Unknown user <name>
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/delete-users-name-backups-file/