Skip to main content
Delete an object from Antryk storage.
curl --request DELETE \
  --url https://storage.apis.antryk.com/api/v1/objects \
  --header 'Content-Type: application/json' \
  --data '{
    "bucket": "upload-final-v1",
    "key": "YOUR_FILENAME",
    "accessKey": "YOUR_ACCESS_KEY",
    "secretKey": "YOUR_SECRET_KEY"
  }'
Provide the delete payload as raw JSON (Content-Type: application/json). Form data is not supported for this operation.

Request Parameters

bucket
string
required
The name of the storage bucket.
key
string
required
The unique identifier or path of the object within the bucket.
accessKey
string
required
The access key for authentication.
secretKey
string
required
The secret key for authentication.

Examples

bucket
string
required
Example: upload-final-v1
key
string
required
Example: YOUR_FILENAME
accessKey
string
required
Example: YOUR_ACCESS_KEY
secretKey
string
required
Example: YOUR_SECRET_KEY

Response

Returns a JSON object confirming the deletion.
{
  "success": true,
  "key": "YOUR_FILENAME",
  "bucket": "upload-final-v1"
}