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

**************************
delete_public_access_block
**************************



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

  

  .. note::

    

    This operation is not supported by directory buckets.

    

   

  Removes the ``PublicAccessBlock`` configuration for an Amazon Web Services account. This operation might be restricted when the account is managed by organization-level Block Public Access policies. You’ll get an Access Denied (403) error when the account is managed by organization-level Block Public Access policies. Organization-level policies override account-level settings, preventing direct account-level modifications. For more information, see `Using Amazon S3 block public access <https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html>`__.

   

  Related actions include:

   

  
  * `GetPublicAccessBlock <https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetPublicAccessBlock.html>`__
   
  * `PutPublicAccessBlock <https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutPublicAccessBlock.html>`__
  

  

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


  **Request Syntax**
  ::

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

    The account ID for the Amazon Web Services account whose ``PublicAccessBlock`` configuration you want to remove.

    

  
  
  :returns: None