# Attachments
# Upload
Returns an Attachment item.
Upload a File (opens new window) as attachment.
const media_item = await media.attachment.upload(file)
# Purge
The attachment
argument is the attachment url or ID.
const options = {}
const media_item = await media.attachment.purge(attachment)