对象存储服务 OBS-删除对象:运行示例

时间:2024-12-11 17:17:47

运行示例

  • 以Windows操作系统为例,运行obsutil rm obs://bucket-test/key -f,删除bucket-test桶中名为key的单个对象。
    obsutil rm obs://bucket-test/key -f
    
    Start at 2024-09-25 04:48:10.1147483 +0000 UTC
    
    Delete object [key] in the bucket [bucket-test] successfully, cost [152], request id [0000016979E1D2B2860BB5181229C72C]
  • 以Windows操作系统为例,运行obsutil rm obs://bucket-test -r -f,删除bucket-test桶中所有对象。
    obsutil rm obs://bucket-test -r -f
    Start at 2024-09-30 08:46:55.5335644 +0000 UTC
    
    [===============================================] 100.00% 21s
    Succeed count:   1313      Failed count:    0
    Task id: 95936984-f81a-441a-bba0-1fd8254d9241
support.huaweicloud.com/utiltg-obs/obs_11_0021.html