Hi,
schematically that is a call of the functionality:
Several settings depend on you application (is it local or not etc.) that you have to determine. The options are then usually defined as constants of the class CL_FDT_DELETE_HANDLING.
Here you can now also analyze the messages (either directly or via the excpetion if one is raised) in order to identify the source why you cannot delete your application
BR
Christian