How do I delete an Associated Document?

I accidentally added a document or photo and I need to delete it.

To delete an associated document or photo, swipe from right to left over it and then tap the red "Remove" button.