:doc:`PinpointSMSVoiceV2 <../../pinpoint-sms-voice-v2>` / Client / delete_registration_attachment

******************************
delete_registration_attachment
******************************



.. py:method:: PinpointSMSVoiceV2.Client.delete_registration_attachment(**kwargs)

  

  Permanently delete the specified registration attachment.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteRegistrationAttachment>`_  


  **Request Syntax**
  ::

    response = client.delete_registration_attachment(
        RegistrationAttachmentId='string'
    )
    
  :type RegistrationAttachmentId: string
  :param RegistrationAttachmentId: **[REQUIRED]** 

    The unique identifier for the registration attachment.

    

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

    
    ::

      {
          'RegistrationAttachmentArn': 'string',
          'RegistrationAttachmentId': 'string',
          'AttachmentStatus': 'UPLOAD_IN_PROGRESS'|'UPLOAD_COMPLETE'|'UPLOAD_FAILED'|'DELETED',
          'AttachmentUploadErrorReason': 'INTERNAL_ERROR',
          'CreatedTimestamp': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RegistrationAttachmentArn** *(string) --* 

        The Amazon Resource Name (ARN) for the registration attachment.

        
      

      - **RegistrationAttachmentId** *(string) --* 

        The unique identifier for the registration attachment.

        
      

      - **AttachmentStatus** *(string) --* 

        The status of the registration attachment.

         

        
        * ``UPLOAD_IN_PROGRESS`` The attachment is being uploaded.
         
        * ``UPLOAD_COMPLETE`` The attachment has been uploaded.
         
        * ``UPLOAD_FAILED`` The attachment failed to uploaded.
         
        * ``DELETED`` The attachment has been deleted..
        

        
      

      - **AttachmentUploadErrorReason** *(string) --* 

        The error message if the upload failed.

        
      

      - **CreatedTimestamp** *(datetime) --* 

        The time when the registration attachment was created, in `UNIX epoch time <https://www.epochconverter.com/>`__ format.

        
  
  **Exceptions**
  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ThrottlingException`

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

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

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

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

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

  