private async Task ApiDelete()
 {
     using (IAgentManager agentManager = _helper.GetServicesManager().CreateProxy <IAgentManager>(ExecutionIdentity.CurrentUser))
     {
         await agentManager.DeleteSingleAsync(_agentArtifactId);
     };
 }