public void remove ( final ObjectId id ) { if ( id == null ) { throw new IllegalArgumentException ( "file id can not be null" ) ; } filesCollection . remove ( new BasicDBObject ( "_id" , id ) ) ; chunksCollection . remove ( new BasicDBObject ( "files_id" , id ) ) ; }
Removes the file matching the given id .