public static Deferred < Object > deleteRule ( final TSDB tsdb , final int tree_id , final int level , final int order ) { if ( tree_id < 1 || tree_id > 65535 ) { throw new IllegalArgumentException ( "Invalid Tree ID" ) ; } if ( level < 0 ) { throw new IllegalArgumentException ( "Invalid rule level" ) ; } if ( order < 0 ) { throw new IllegalArgumentException ( "Invalid rule order" ) ; } final DeleteRequest delete = new DeleteRequest ( tsdb . treeTable ( ) , Tree . idToBytes ( tree_id ) , Tree . TREE_FAMILY ( ) , getQualifier ( level , order ) ) ; return tsdb . getClient ( ) . delete ( delete ) ; }
Attempts to delete the specified rule from storage