deleteImageServingUrl
如何使用deleteImageServingUrl从GAE中删除上传的文件。
if (getenv('APP_ENGINE_ENVIRONMENT') == 'PRODUCTION') {
$bucket = getenv('PRODUCTION_UPLOAD_BUCKET_NAME');
} else {
$bucket = getenv('TESTING_UPLOAD_BUCKET_NAME');
}
$root_path = 'gs://' . $bucket . '/';
$file_name = 'post_attachments_34-Funny-Duck-Dancing-Picture.jpg';
$root_path .= $file_name;
$delete_image = CloudStorageTools::deleteImageServingUrl($root_path);