fixed delete, added delete attachments endpoint