DELETE
/
v1
/
objects
Blob Delete Objects
curl --request DELETE \
  --url https://blob.squarecloud.app/v1/objects \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "object": "<string>"
}'
{
  "status": "success",
}
Authorization
string
required
The API key for your account. You can find this in your account settings.
object
string
required
The name of the object to delete. The object name must adhere to the following pattern: a to z, A to Z, 0 to 9, and _.
{ "object": "ID/prefix/name1_ltq7b2sw-de6241.jpeg" }

Response

status
string
Indicates whether the call was successful. “success” if successful, “error” if not.
{
  "status": "success",
}

Troubleshooting

// The provided object name is invalid.
{
    "status": "error",
    "code": "INVALID_OBJECT"
}