:doc:`Glue <../../glue>` / Client / delete_schema

*************
delete_schema
*************



.. py:method:: Glue.Client.delete_schema(**kwargs)

  

  Deletes the entire schema set, including the schema set and all of its versions. To get the status of the delete operation, you can call ``GetSchema`` API after the asynchronous call. Deleting a registry will deactivate all online operations for the schema, such as the ``GetSchemaByDefinition``, and ``RegisterSchemaVersion`` APIs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteSchema>`_  


  **Request Syntax**
  ::

    response = client.delete_schema(
        SchemaId={
            'SchemaArn': 'string',
            'SchemaName': 'string',
            'RegistryName': 'string'
        }
    )
    
  :type SchemaId: dict
  :param SchemaId: **[REQUIRED]** 

    This is a wrapper structure that may contain the schema name and Amazon Resource Name (ARN).

    

  
    - **SchemaArn** *(string) --* 

      The Amazon Resource Name (ARN) of the schema. One of ``SchemaArn`` or ``SchemaName`` has to be provided.

      

    
    - **SchemaName** *(string) --* 

      The name of the schema. One of ``SchemaArn`` or ``SchemaName`` has to be provided.

      

    
    - **RegistryName** *(string) --* 

      The name of the schema registry that contains the schema.

      

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

    
    ::

      {
          'SchemaArn': 'string',
          'SchemaName': 'string',
          'Status': 'AVAILABLE'|'PENDING'|'DELETING'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SchemaArn** *(string) --* 

        The Amazon Resource Name (ARN) of the schema being deleted.

        
      

      - **SchemaName** *(string) --* 

        The name of the schema being deleted.

        
      

      - **Status** *(string) --* 

        The status of the schema.

        
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.InvalidInputException`

  
  *   :py:class:`Glue.Client.exceptions.EntityNotFoundException`

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

  
  *   :py:class:`Glue.Client.exceptions.ConcurrentModificationException`

  