Image: delete
Deletes image permanently from the cloud.
Please take into consideration, this action has no effect on transformations stored in the CDN.
Request
HTTP request
DELETE /image/v1/c/<cloudId>/o/<publicId> HTTP/1.1
Parameters
Paramete name | Value | Description |
---|---|---|
Path parameters | ||
cloudId | String | ID of cloud |
publicId | String | Public ID of image |
Request Body
This method does not support request body.
Response
This method does not contain response body.
Response HTTP status code
HTTP status code | Description |
---|---|
204 | Image deleted successfully |
404 | The given public ID not found in the cloud |
For more information about HTTP codes, click here.
Rate limit
Detailed information for image rate limitation is available in this article.
SDK
use shardimage\shardimagephp\auth\Client;
$client = new Client([
'apiKey' => '<apiKey>',
'apiSecret' => '<apiSecret>',
'imageSecret' => '<imageSecret>',
]);
$result = $client->getImageService()->delete([
'cloudId' => '<cloudId>',
'publicId' => '<publicId>',
]);