Deleting mount targets
When you delete a mount target, it breaks any mounts of the file system. This might disrupt compute resources and applications using those mounts. To avoid disruption, stop applications and unmount the file system before you delete the mount target.
You can delete mount targets for a file system by using the Amazon Management Console, Amazon CLI, or programmatically by using the Amazon SDKs.
Use the Amazon S3 console to delete a mount target for S3 Files.
Sign in to the Amazon Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/
. In the navigation bar, verify you are in the Amazon Region of the mount target that you want to delete.
In the left navigation pane, choose General purpose buckets.
Choose a general purpose bucket your file system is attached to.
Select the File systems tab and select your desired file system.
Select the Mount targets tab and select the mount target you wish to delete.
Choose Delete.
In the confirmation window, type
confirmand choose Delete.
The following delete-mount-target command deletes a mount target for S3 Files using the Amazon CLI.
aws s3files delete-mount-target --regionaws-region--mount-target-idmount-target-id