:doc:`Keyspaces <../../keyspaces>` / Client / delete_type

***********
delete_type
***********



.. py:method:: Keyspaces.Client.delete_type(**kwargs)

  

  The ``DeleteType`` operation deletes a user-defined type (UDT). You can only delete a type that is not used in a table or another UDT.

   

  To configure the required permissions, see `Permissions to delete a UDT <https://docs.aws.amazon.com/keyspaces/latest/devguide/configure-udt-permissions.html#udt-permissions-drop>`__ in the *Amazon Keyspaces Developer Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/DeleteType>`_  


  **Request Syntax**
  ::

    response = client.delete_type(
        keyspaceName='string',
        typeName='string'
    )
    
  :type keyspaceName: string
  :param keyspaceName: **[REQUIRED]** 

    The name of the keyspace of the to be deleted type.

    

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

    The name of the type to be deleted.

    

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

    
    ::

      {
          'keyspaceArn': 'string',
          'typeName': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **keyspaceArn** *(string) --* 

        The unique identifier of the keyspace from which the type was deleted in the format of an Amazon Resource Name (ARN).

        
      

      - **typeName** *(string) --* 

        The name of the type that was deleted.

        
  
  **Exceptions**
  
  *   :py:class:`Keyspaces.Client.exceptions.ValidationException`

  
  *   :py:class:`Keyspaces.Client.exceptions.ServiceQuotaExceededException`

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

  
  *   :py:class:`Keyspaces.Client.exceptions.ConflictException`

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

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

  