src/java/org/apache/cassandra/service/StorageService.java
/**
     * Remove the snapshot with the given name from the given tables.
     * If no tag is specified we will remove all snapshots.
     */
Remove the snapshot with the given name from the given tables.
If no tag is specified we will remove all snapshots.
Remove the snapshot with the given name from the given tables . If no tag is specified we will remove all snapshots .
@Override
    public void clearSnapshot(String tag, String... tableNames) throws IOException
    {
        if(tag == null)
            tag = "";
        Iterable<Table> tables;
        if (tableNames.length == 0)
        {
            tables = Table.all();
        }
        else
        {
            ArrayList<Table> tempTables = new ArrayList<Table>();
            for(String table : tableNames)
                tempTables.add(getValidTable(table));
            tables = tempTables;
        }
        for (Table table : tables)
            table.clearSnapshot(tag);
        if (logger_.isDebugEnabled())
            logger_.debug("Cleared out snapshot directories");
    }
@ Override public void clearSnapshot ( String tag , String ... tableNames ) throws IOException { if ( tag == null ) tag = "" ; Iterable < Table > tables ; if ( tableNames . length == 0 ) { tables = Table . all ( ) ; } else { ArrayList < Table > tempTables = new ArrayList < Table > ( ) ; for ( String table : tableNames ) tempTables . add ( getValidTable ( table ) ) ; tables = tempTables ; } for ( Table table : tables ) table . clearSnapshot ( tag ) ; if ( logger_ . isDebugEnabled ( ) ) logger_ . debug ( "Cleared out snapshot directories" ) ; }
Remove the snapshot with the given name from the given tables.
Remove the snapshot with the given name from the given tables .