Connect / Client / delete_attached_file
delete_attached_file#
- Connect.Client.delete_attached_file(**kwargs)#
- Deletes an attached file along with the underlying S3 Object. - Warning- The attached file is permanently deleted if S3 bucket versioning is not enabled. - See also: AWS API Documentation - Request Syntax- response = client.delete_attached_file( InstanceId='string', FileId='string', AssociatedResourceArn='string' ) - Parameters:
- InstanceId (string) – - [REQUIRED] - The unique identifier of the Connect instance. 
- FileId (string) – - [REQUIRED] - The unique identifier of the attached file resource. 
- AssociatedResourceArn (string) – - [REQUIRED] - The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. - Note- This value must be a valid ARN. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- {}- Response Structure- (dict) – Response from DeleteAttachedFile API 
 
 - Exceptions- Connect.Client.exceptions.AccessDeniedException
- Connect.Client.exceptions.InvalidRequestException
- Connect.Client.exceptions.InternalServiceException
- Connect.Client.exceptions.ResourceNotFoundException
- Connect.Client.exceptions.ThrottlingException