Deleting mount targets
When you delete a mount target, the operation forcibly breaks any mounts of the file system, which might disrupt compute resources and applications using those mounts. To avoid application disruption, stop applications and unmount the file system before deleting the mount target.
You can delete mount targets for a file system by using the AWS Management Console, AWS CLI, or programmatically by using the AWS SDKs.
This section explains how to use the Amazon S3 console to delete a mount target for S3 Files.
Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/
. In the navigation bar at the top of the page, verify you are in the AWS 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 example command shows how you can
use the AWS CLI to delete a mount target for S3 Files.
aws s3files delete-mount-target --regionaws-region--mount-target-idmount-target-id