package dbAccess import ( "context" ) const corpusCollection = "corpus" const stationsCollection = "stations" func dropExistingCorpus() error { database := MongoClient.Database(databaseName) collection := database.Collection(corpusCollection) err := collection.Drop(context.Background()) if err != nil { return err } collection = database.Collection(stationsCollection) err = collection.Drop(context.Background()) if err != nil { return err } return nil }