function moveFileToTrash(e) {

  const id = e.drive.activeCursorItem.id
  const file = DriveApp.getFileById(id);
  file.setTrashed(true);
}
Sends the given document to the trash folder.

@param {!Event} e Add-on event context