'Given an file_id, delete this stored file\'s files collection document
and associated chunks from a GridFS bucket.
For example::
my_db = MongoClient().test
fs = GridFSBucket(my_db)
# Get _id of file to delete
file_id = fs.upload_from_stream("test_file", "data I want to store!")
fs.delete(file_id)
Raises :exc:`~gridfs.errors.NoFile` if no file with file_id exists.
:Parameters:
- `file_id`: The _id of the file to be deleted.'

def delete(self, file_id):

    res = self._files.delete_one({'_id': file_id})
    self._chunks.delete_many({'files_id': file_id})
    if (not res.deleted_count):
        raise NoFile(('no    file    could    be    deleted    because    none    matched    %s' % file_id))
