DELETE
/
{objectKey}
curl -X DELETE "https://mybucket.storage.nami.cloud/example.jpg" \
  -H "Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20231028/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-date, Signature=fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024"

Make sure you have WRITE permission on the bucket.

Delete Object

Removes an object from a bucket. The operation is idempotent - sending multiple delete requests to the same object has no additional effect.

Base URL

https://${bucketname}.storage.nami.cloud

Parameters

objectKey
required

The key of the object to delete

Headers

x-amz-mfa

The MFA authentication code when MFA Delete is enabled

x-amz-version-id

Version ID of the object to delete (for versioned buckets)

Request Examples

curl -X DELETE "https://mybucket.storage.nami.cloud/example.jpg" \
  -H "Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20231028/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-date, Signature=fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024"

Response Example

HTTP/1.1 204 No Content
x-amz-id-2: JuKZqmXuiwFeDQxhD7M8KtsKobSzWA1QEjLbTMTagkKdBX2z7Il/jGhDeJ3j6s80
x-amz-request-id: 32FE2CEB32F5EE25
Date: Wed, 28 Oct 2023 22:32:00 GMT
Server: Nami Cloud

Authorizations

Authorization
string
header
required

AWS Signature Version 4

Path Parameters

objectKey
string
required

Key of the object to delete

Response

204

Object deleted successfully