How to delete a specific instance from a cloud service - PAAS V1

Special Thanks to my colleague Kevin Williamson for the idea and suggestion.

Please check this REST API command - delete Role Instances
The API takes a specific role instance in the body. We can tell it to just delete a single instance.

<RoleInstances xmlns="" xmlns:i="">
<Name>Role Instance name</Name>

PAAS deployment with 3 instances -


POST -\<subscription-id>/services/hostedservices/<cloudservice-name>/deployments/<deployment-name>/roleinstances/
URI Parameter - comp=delete

Note : You can use AzureTools to test the RESP API calls -
You can navigate to the section in below screenshot, by clicking on “Misc tools” link after downloading the tool.


After the Delete API call, deployment has 2 instances -