tcms.rpc.api.attachment module

tcms.rpc.api.attachment.remove_attachment(attachment_id, **kwargs)[source]
RPC Attachment.remove_attachment(attachment_id)

Remove the given attachment file.

Parameters:
  • attachment_id (int) – PK of attachment to remove

  • **kwargs – Dict providing access to the current request, protocol, entry point name and handler instance from the rpc method

Raises:

Exception – if attachment doesn’t exist, InternalError or removal fails