public long delete ( final String pTileSourceName , final int pZoom , final Collection < Rect > pInclude , final Collection < Rect > pExclude ) { try { final SQLiteDatabase db = getDb ( ) ; if ( db == null || ! db . isOpen ( ) ) { return - 1 ; } return db . delete ( TABLE , getWhereClause ( pZoom , pInclude , pExclude ) + ( pTileSourceName != null ? " and " + COLUMN_PROVIDER + "=?" : "" ) , pTileSourceName != null ? new String [ ] { pTileSourceName } : null ) ; } catch ( Exception ex ) { catchException ( ex ) ; return 0 ; } }
Delete cache tiles