shardingsphere-mode/shardingsphere-mode-core/src/main/java/org/apache/shardingsphere/mode/metadata/persist/service/impl/DataSourcePersistService.java
/**
     * Drop data sources.
     * 
     * @param schemaName schema name
     * @param toBeDroppedDataSourceNames data sources to be dropped
     */
Drop data sources.

@param schemaName schema name
@param toBeDroppedDataSourceNames data sources to be dropped
Drop data sources . @param schemaName schema name @param toBeDroppedDataSourceNames data sources to be dropped
public void drop(final String schemaName, final Collection<String> toBeDroppedDataSourceNames) {
        Map<String, DataSourceConfiguration> dataSourceConfigs = load(schemaName);
        for (String each : toBeDroppedDataSourceNames) {
            dataSourceConfigs.remove(each);
        }
        persist(schemaName, dataSourceConfigs);
    }
public void drop ( final String schemaName , final Collection < String > toBeDroppedDataSourceNames ) { Map < String , DataSourceConfiguration > dataSourceConfigs = load ( schemaName ) ; for ( String each : toBeDroppedDataSourceNames ) { dataSourceConfigs . remove ( each ) ; } persist ( schemaName , dataSourceConfigs ) ; }
Drop data sources.
Drop data sources .