public fun removeSelectedAttachment(attachment: Attachment) { selectedAttachments.value = selectedAttachments.value - attachment  handleValidationErrors() }
Removes a selected attachment from the list, when the user taps on the cancel/delete button.