the delete method should take a file id rather than a file object