Hi,
Although you are able to write a custom selective deletion program yourself, I don't advise you to go into this direction. Moreover, there are better ways to delete data from DSOs.
I think of a standard data flow with a Transformation with deletion logic. Use 0RECORDMODE = 'D' in conjunction with the key fields to delete data from the DSO. This will be a much more robust mechanism in my opinion.
Best regards,
Sander