DELETE
/
v1
/
delete
curl --request DELETE \
  --url https://blob.squarecloud.app/v1/delete \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "objects": [
    {}
  ]
}'
{
  "status": "success",
}
Authorization
string
required

The API key for your account. You can find this in your account settings.

objects
array
Square Cloud API Playground does not support the specific array usage.

An array of strings representing the names of the objects to delete. You can delete up to 100 objects at a time in a single request. Object names must adhere to the following pattern: a to z, A to Z, 0 to 9, and _.

[
"ID/prefix/name1_ltq7b2sw-de6241.jpeg",
"ID/prefix/name_ltq7b2sw-de6243-ex1.jpeg"
]

Response

status
string

Indicates whether the call was successful. “success” if successful, “error” if not.

Troubleshooting

Object-Related

// The provided object names are invalid.
{
    "status": "error",
    "code": "INVALID_OBJECTS"
}