func (gfs *GridFS) Remove(name string) (err error) {
	iter := gfs.Files.Find(bson.M{"filename": name}).Select(bson.M{"_id": 1}).Iter()
	var doc gfsDocId
	for iter.Next(&doc) {
		if e := gfs.RemoveId(doc.Id); e != nil {
			err = e
		}
	}
	if err == nil {
		err = iter.Close()
	}
	return err
}
func (gfs *GridFS) Remove(name string) (err error) {
	iter := gfs.Files.Find(bson.M{"filename": name}).Select(bson.M{"_id": 1}).Iter()
	var doc gfsDocId
	for iter.Next(&doc) {
		if e := gfs.RemoveId(doc.Id); e != nil {
			err = e
		}
	}
	if err == nil {
		err = iter.Close()
	}
	return err
}
func ( gfs * GridFS ) Remove ( name string ) ( err error ) { iter := gfs . Files . Find ( bson . M { " " : name } ) . Select ( bson . M { " " : 1 } ) . Iter ( ) var doc gfsDocId for iter . Next ( & doc ) { if e := gfs . RemoveId ( doc . Id ) ; e != nil { err = e } } if err == nil { err = iter . Close ( ) } return err }
// Remove deletes all files with the provided name from the GridFS.
Remove deletes all files with the provided name from the GridFS .