public int delete ( Long id ) { if ( id != null ) { return getWritableDb ( ) . delete ( th . getTableName ( ) , th . getIdCol ( ) + "=?" , new String [ ] { id . toString ( ) } ) ; } return 0 ; }
Deletes a single row by ID . Returns the number of rows deleted or 0 if unsuccessful .