【问题标题】:Is there a way to permanently delete objects in S3 using the AWS CLI? [duplicate]有没有办法使用 AWS CLI 永久删除 S3 中的对象? [复制]
【发布时间】:2022-12-09 04:20:34
【问题描述】:

rm 只是添加删除标记,但我想永久删除。这在 AWS CLI 中可能吗?

【问题讨论】:

    标签: amazon-web-services amazon-s3 aws-cli


    【解决方案1】:

    以下命令从名为 my-bucket 的存储桶中删除名为 test.txt 的对象:

    aws s3api delete-object --bucket my-bucket --key test.txt
    

    参考:https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html

    【讨论】:

    • 这不会删除删除标记。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-09-26
    • 1970-01-01
    • 1970-01-01
    • 2019-07-20
    • 2019-04-15
    • 1970-01-01
    • 2020-03-16
    相关资源
    最近更新 更多