Skip to main content
DELETE
/
{namespace}
/
{repo_name}
/
workspaces
/
{workspace_id}
/
versions
Batch delete files (Stage removal)
curl --request DELETE \
  --url https://hub.oxen.ai/{namespace}/{repo_name}/workspaces/{workspace_id}/versions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  "images/train/dog_1.jpg",
  "annotations/incorrect.xml"
]
'
{
  "status": "<string>",
  "status_message": "<string>",
  "paths": [
    "<string>"
  ],
  "oxen_version": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespace
string
required

The namespace of the repository

repo_name
string
required

The name of the repository

workspace_id
string
required

The UUID of the workspace

Body

application/json

List of paths to remove from the workspace staging area

Response

Files successfully removed

status
string
required
status_message
string
required
paths
string[]
required
oxen_version
string | null