:doc:`Queue <index>` / Action / remove_permission

*****************
remove_permission
*****************



.. py:method:: SQS.Queue.remove_permission(**kwargs)

  

  Revokes any permissions in the queue policy that matches the specified ``Label`` parameter.

   

  .. note::

    

    
    * Only the owner of a queue can remove permissions from it.
     
    * Cross-account permissions don't apply to this action. For more information, see `Grant cross-account permissions to a role and a username <https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name>`__ in the *Amazon SQS Developer Guide*.
     
    * To remove the ability to change queue permissions, you must deny permission to the ``AddPermission``, ``RemovePermission``, and ``SetQueueAttributes`` actions in your IAM policy.
    

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/RemovePermission>`_  


  **Request Syntax**
  ::

    response = queue.remove_permission(
        Label='string'
    )
    
  :type Label: string
  :param Label: **[REQUIRED]** 

    The identification of the permission to remove. This is the label added using the ``AddPermission`` action.

    

  
  
  :returns: None