boolean deleteTrigger ( long id , String appPackageName ) { String where = Contract . COLUMN_APP_IDENTIFIER + " = ? AND " + Contract . _ID + " = ?" ; String [ ] whereArgs = { appPackageName , Long . toString ( id ) } ; int count = getReadableDatabase ( ) . delete ( Contract . TABLE_NAME , where , whereArgs ) ; return count > 0 ; }
Delete the trigger with the given id .