Delete a registered location
You can delete a location registration from an Amazon S3 Access Grants instance. Deleting the location deregisters it from the S3 Access Grants instance.
Before you can remove a location registration from an S3 Access Grants instance, you must delete all of the grants that are associated with this location. For information about how to delete grants, see Delete a grant.
You can delete a location in your S3 Access Grants instance by using the Amazon S3 console, the Amazon Command Line Interface (Amazon CLI), the Amazon S3 REST API, and the Amazon SDKs.
To delete a location registration from your S3 Access Grants instance
Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at https://console.amazonaws.cn/s3/
. -
In the left navigation pane, choose Access Grants.
-
On the S3 Access Grants page, choose the Region that contains the S3 Access Grants instance that you want to work with.
-
Choose View details for the instance.
-
On the details page for the instance, choose the Locations tab.
-
Find the location that you want to update. To filter the list of locations, use the search box.
-
Choose the option button next to the registered location that you want to delete.
-
Choose Deregister.
-
A dialog box appears that warns you that this action can't be undone. To delete the location, choose Deregister.
To install the Amazon CLI, see Installing the Amazon CLI in the Amazon Command Line Interface User Guide.
To use the following example command, replace the
with your own information.user input
placeholders
Example – Delete a location registration
aws s3control delete-access-grants-location \ --account-id
111122223333
\ --access-grants-location-ida1b2c3d4-5678-90ab-cdef-EXAMPLE11111
// No response body
For information about the Amazon S3 REST API support for deleting a location from an S3 Access Grants instance, see DeleteAccessGrantsLocation in the Amazon Simple Storage Service API Reference.
This section provides an example of how to delete a location by using the Amazon SDKs.
To use the following example, replace the
with your own information.user input
placeholders