:doc:`CloudDirectory <../../clouddirectory>` / Client / delete_facet

************
delete_facet
************



.. py:method:: CloudDirectory.Client.delete_facet(**kwargs)

  

  Deletes a given  Facet. All attributes and  Rules that are associated with the facet will be deleted. Only development schema facets are allowed deletion.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteFacet>`_  


  **Request Syntax**
  ::

    response = client.delete_facet(
        SchemaArn='string',
        Name='string'
    )
    
  :type SchemaArn: string
  :param SchemaArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) that is associated with the  Facet. For more information, see  arns.

    

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

    The name of the facet to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CloudDirectory.Client.exceptions.InternalServiceException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.InvalidArnException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.RetryableConflictException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.ValidationException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.LimitExceededException`

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

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

  
  *   :py:class:`CloudDirectory.Client.exceptions.FacetNotFoundException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.FacetInUseException`

  