def delete_role_instances(self, service_name, deployment_name,<EOL>role_instance_names):
_validate_not_none('<STR_LIT>', service_name)<EOL>_validate_not_none('<STR_LIT>', deployment_name)<EOL>_validate_not_none('<STR_LIT>', role_instance_names)<EOL>return self._perform_post(<EOL>self._get_deployment_path_using_name(<EOL>service_name, deployment_name) + '<STR_LIT>',<EOL>_XmlSerializer.role_instances_to_xml(role_instance_names),<EOL>as_async=True)<EOL>
Reinstalls the operating system on instances of web roles or worker
roles and initializes the storage resources that are used by them. If
you do not want to initialize storage resources, you can use
reimage_role_instance.

service_name:
    Name of the hosted service.
deployment_name:
    The name of the deployment.
role_instance_names:
    List of role instance names.