:doc:`WorkDocs <../../workdocs>` / Client / delete_labels

*************
delete_labels
*************



.. py:method:: WorkDocs.Client.delete_labels(**kwargs)

  

  Deletes the specified list of labels from a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteLabels>`_  


  **Request Syntax**
  ::

    response = client.delete_labels(
        ResourceId='string',
        AuthenticationToken='string',
        Labels=[
            'string',
        ],
        DeleteAll=True|False
    )
    
  :type ResourceId: string
  :param ResourceId: **[REQUIRED]** 

    The ID of the resource.

    

  
  :type AuthenticationToken: string
  :param AuthenticationToken: 

    Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

    

  
  :type Labels: list
  :param Labels: 

    List of labels to delete from the resource.

    

  
    - *(string) --* 

    

  :type DeleteAll: boolean
  :param DeleteAll: 

    Flag to request removal of all labels from the specified resource.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkDocs.Client.exceptions.EntityNotExistsException`

  
  *   :py:class:`WorkDocs.Client.exceptions.UnauthorizedOperationException`

  
  *   :py:class:`WorkDocs.Client.exceptions.UnauthorizedResourceAccessException`

  
  *   :py:class:`WorkDocs.Client.exceptions.FailedDependencyException`

  
  *   :py:class:`WorkDocs.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`WorkDocs.Client.exceptions.ProhibitedStateException`

  