title: Remove operation using powershell command in apim
body: <p>I want to use Az Powershell command to remove operation from apim. Does anyone know how?
  I am looking at documentation for Remove-AzApiManagementOperation
  This is the example given:</p>
  <pre><code>Remove-AzApiManagementOperation -Context $apimContext -ApiId &quot;0123456789&quot; -OperationId &quot;9876543210&quot; -Force
  </code></pre>
  <p>I tried to use the following code to get the operationID but it keeps erroring:</p>
  <pre><code>Get-AzApiManagementOperation -Context $apimContext -ApiId $APIId -OperationId &quot;Operation003&quot;
  </code></pre>
  <p>Is &quot;Operation003&quot; the name of the operation here? How can I find what is the name given to my operation.
  All I see is my Api ...which is &quot;MyTestService&quot; and my operation which is &quot;CreateCustomer&quot;</p>
  <p>Has anyone had any success? Any info is appreciated.
  Thanks</p>
  <p>Update: I tried this</p>
  <p>$AllOperations = Get-AzApiManagementOperation -Context $ApiMgmtContext -ApiId $ExistingAzureApi.ApiId
  Write-Host $AllOperations</p>
  <p>in output all I see is
  Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation</p>
  <p>How can I get the properties of this object in PS?
  $AllOperations.OperationCollection[0].Name ????</p>