:doc:`WorkMail <../../workmail>` / Client / delete_resource

***************
delete_resource
***************



.. py:method:: WorkMail.Client.delete_resource(**kwargs)

  

  Deletes the specified resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteResource>`_  


  **Request Syntax**
  ::

    response = client.delete_resource(
        OrganizationId='string',
        ResourceId='string'
    )
    
  :type OrganizationId: string
  :param OrganizationId: **[REQUIRED]** 

    The identifier associated with the organization from which the resource is deleted.

    

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

    The identifier of the resource to be deleted.

     

    The identifier can accept *ResourceId*, or *Resourcename*. The following identity formats are available:

     

    
    * Resource ID: r-0123456789a0123456789b0123456789
     
    * Resource name: resource
    

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkMail.Client.exceptions.EntityStateException`

  
  *   :py:class:`WorkMail.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationStateException`

  
  *   :py:class:`WorkMail.Client.exceptions.UnsupportedOperationException`

  