Deleting a file using an S3 access point - FSx for OpenZFS
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Deleting a file using an S3 access point

The following delete-object example command shows how you can use the AWS CLI to delete a file through an access point.

$ aws s3api delete-object --bucket my-openzfs-ap-hrzrlukc5m36ft7okagglf3gmwluquse1b-ext-s3alias --key my-image.jpg

You can also use the REST API to delete an object through an access point. For more information, see DeleteObject in the Amazon Simple Storage Service API Reference.