

# Delete your access point for directory buckets
<a name="access-points-directory-buckets-delete"></a>

This section explains how to delete your access point using the Amazon Web Services Management Console, Amazon Command Line Interface, REST API, or Amazon SDKs.

**Note**  
Before you can delete a directory bucket attached to an access point, you must delete the access point.

## Using the S3 console
<a name="access-points-directory-buckets-delete-console"></a>

**To delete access points for directory buckets in your Amazon Web Services account**

1. Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at [https://console.amazonaws.cn/s3/](https://console.amazonaws.cn/s3/).

1. In the navigation bar on the top of the page, choose the name of the currently displayed Amazon Web Services Region. Next, choose the Region that you want to list access points for.

1. In the navigation pane on the left side of the console, choose **Access points for directory buckets**.

1. (Optional) Search for access points by name. Only access points in your selected Amazon Web Services Region will appear here.

1. Choose the name of the access point you want to delete.

1. Choose **Delete**.

1. To confirm deletion, type **confirm** and choose **Delete**.

## Using the Amazon CLI
<a name="access-points-directory-buckets-delete-cli"></a>

The following `delete-access-point` example command shows how you can use the Amazon CLI to delete your access point.

The following command deletes the access point {{{{my-access-point}}}}--{{zoneID}}--xa-s3 for Amazon Web Services account {{111122223333}}.

```
aws s3control delete-access-point --name {{{{my-access-point}}}}--{{zoneID}}--xa-s3 --account-id {{111122223333}}      
```

For more information and examples, see [https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3control/delete-access-point.html](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3control/delete-access-point.html) in the *Amazon CLI Command Reference*.

## Using the REST API
<a name="access-points-directory-buckets-delete-rest"></a>

You can use the REST API to delete your access point. For more information, see [https://docs.amazonaws.cn/AmazonS3/latest/API/API_control_DeleteAccessPoint.html](https://docs.amazonaws.cn/AmazonS3/latest/API/API_control_DeleteAccessPoint.html) in the *Amazon Simple Storage Service API Reference*.

## Using the Amazon SDKs
<a name="access-points-directory-buckets-delete-sdk"></a>

You can use the Amazon SDKs to delete your access points. For more information, see [list of supported SDKs](https://docs.amazonaws.cn/AmazonS3/latest/API/API_control_DeleteAccessPoint.html#API_control_DeleteAccessPoint_SeeAlso) in the Amazon Simple Storage Service API Reference.