:doc:`VPCLattice <../../vpc-lattice>` / Client / delete_auth_policy

******************
delete_auth_policy
******************



.. py:method:: VPCLattice.Client.delete_auth_policy(**kwargs)

  

  Deletes the specified auth policy. If an auth is set to ``AWS_IAM`` and the auth policy is deleted, all requests are denied. If you are trying to remove the auth policy completely, you must set the auth type to ``NONE``. If auth is enabled on the resource, but no auth policy is set, all requests are denied.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/vpc-lattice-2022-11-30/DeleteAuthPolicy>`_  


  **Request Syntax**
  ::

    response = client.delete_auth_policy(
        resourceIdentifier='string'
    )
    
  :type resourceIdentifier: string
  :param resourceIdentifier: **[REQUIRED]** 

    The ID or ARN of the resource.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`VPCLattice.Client.exceptions.ValidationException`

  
  *   :py:class:`VPCLattice.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`VPCLattice.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`VPCLattice.Client.exceptions.ThrottlingException`

  
  *   :py:class:`VPCLattice.Client.exceptions.InternalServerException`

  