@RequestMapping(value = "/deployments/{name}", method = RequestMethod.DELETE)
	@ResponseStatus(HttpStatus.OK)
	public void undeploy(@PathVariable("name") String name) throws Exception {
		validator.validateBeforeUndeploy(name);
		deploymentMessagePublisher.poll(new DeploymentMessage(deploymentUnitType)
				.setUnitName(name)
				.setDeploymentAction(DeploymentAction.undeploy));
	}
Request un-deployment of an existing resource.

@param name the name of an existing resource (required)
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/XDController.java