You can delete a remote persistent procedure that you have executed asynchronously just like one you have executed synchronously, using the DELETEOBJECT or DELETEPROCEDURE statement. However, for an asynchronous procedure, the delete request raises an ERROR condition if the ASYNC-REQUEST-COUNT attribute on the proxy procedure handle is greater than zero (0). If ASYNC-REQUEST-COUNT is zero (0), the local proxy procedure handle is deleted immediately.
If an asynchronous request for another procedure is executing in the server session at the time of the delete request, the delete request is queued on the server until the server session becomes available to delete the remote persistent procedure.