$http.delete?

Hello,

I am trying to delete some variables from the task by using rest. I tried this construction, but it returns an error.
Code:

$scope.deleteFile = function(fileName) {
	var formData = new FormData();
	console.log("get name of file for DELETE: " + document.getElementById(fileName).files[0].name);
	$http.delete(Uri.appUri('engine://engine/:engine/process-instance/' + result.processInstanceId + '/variables/'+ fileName +'/data')
					});
				};

The error that I am getting:
Server Error : No resource method found for DELETE, return 405 with Allow header
org.jboss.resteasy.spi.MethodNotAllowedException: No resource method found for DELETE, return 405 with Allow header

The DELETE method is not supported? Or I am using an invalid construction for it?
Thanks in advance and kind regards,
Deniss

I see no DELETE method for /data… Remove it and try again.

https://docs.camunda.org/manual/7.4/reference/rest/process-instance/variables/

Oops :slight_smile: My bad. Will try again.

Thanks!!!