:doc:`S3Control <../../s3control>` / Client / delete_access_point_scope

*************************
delete_access_point_scope
*************************



.. py:method:: S3Control.Client.delete_access_point_scope(**kwargs)

  

  Deletes an existing access point scope for a directory bucket.

   

  .. note::

    

    When you delete the scope of an access point, all prefixes and permissions are deleted.

    

   

  To use this operation, you must have the permission to perform the ``s3express:DeleteAccessPointScope`` action.

   

  For information about REST API errors, see `REST error responses <https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/DeleteAccessPointScope>`_  


  **Request Syntax**
  ::

    response = client.delete_access_point_scope(
        AccountId='string',
        Name='string'
    )
    
  :type AccountId: string
  :param AccountId: **[REQUIRED]** 

    The Amazon Web Services account ID that owns the access point with the scope that you want to delete.

    

  
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the access point with the scope that you want to delete.

    

  
  
  :returns: None