Remove an attachment from a session or cancel its processing.
If the attachment is still being processed, cancels the processing job. If processing completed, removes the attachment from the session. The attachment_id can be either the final attachment ID or the job ID (during processing).