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

*******************
delete_access_grant
*******************



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

  

  Deletes the access grant from the S3 Access Grants instance. You cannot undo an access grant deletion and the grantee will no longer have access to the S3 data.

    Permissions  

  You must have the ``s3:DeleteAccessGrant`` permission to use this operation.

  

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


  **Request Syntax**
  ::

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

    The Amazon Web Services account ID of the S3 Access Grants instance.

    

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

    The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.

    

  
  
  :returns: None