Prerequisites
When you delete a lock object, the
function modules generated when you activated the lock object are automatically deleted as well. These generated function modules might still be in use in programs or classes.Therefore, before deleting a lock object, find all programs or classes that contain these function modules and remove the calls to the function modules.
Procedure
Choose
to find all the programs or classes that are still using the lock object. Remove the lock module calls in the objects you found.

A dialog box appears in which you must confirm the deletion request. If the function modules belonging to the lock object are still in use in programs or classes, a corresponding warning appears. In this case you must adjust the programs or classes affected before deleting the lock object.
Result
The lock object is deleted together with the function modules generated from this lock object.