In DB2 Version 8, you have a new statement which is GET DIAGNOSTICS. It can be used in application program to give the no. of rows that were updated, inserted, deleted or fetched. You can use it in your application code as follows
GET DIAGNOSTICS :rcount = ROW_COUNT;
:rcount host variable will give you no. of rows deleted.