boolean deleteAllTriggerOf ( String appPackageName ) { String where = Contract . COLUMN_APP_IDENTIFIER + " = ?" ; String [ ] whereArgs = { appPackageName } ; int c = getReadableDatabase ( ) . delete ( Contract . TABLE_NAME , where , whereArgs ) ; return c > 0 ; }
Delete all the triggers registered with the given application identifier .