delete.php 370 B

1234567891011121314151617
  1. <?php
  2. require_once("../ucloud/proxy.php");
  3. //存储空间名
  4. $bucket = "your bucket";
  5. //上传至存储空间后的文件名称(请不要和API公私钥混淆)
  6. $key = "your key";
  7. list($data, $err) = UCloud_Delete($bucket, $key);
  8. if ($err) {
  9. echo "error: " . $err->ErrMsg . "\n";
  10. echo "code: " . $err->Code . "\n";
  11. exit;
  12. }
  13. echo "delete $bucket/$key success\n";