A root user can delete any running script uploaded to the appliance. A non-root user can only access and delete their own running scripts.
For more information on scripting, see Working with CLI Scripting in Oracle ZFS Storage Appliance Administration Guide, Release OS8.7.x
Example Request:
$ curl -kv -X DELETE --user root:l1a https://hostname:215/api/workflow/v1/scripts/9 DELETE /api/workflow/v1/scripts/9 HTTP/1.1 Host: hostname:215 Authorization: Basic cm9vdDpsMWE= User-Agent: curl/7.45.0 Accept: */*
Example Result:
HTTP/1.1 204 No Content Date: Mon, 27 Mar 2017 22:59:12 GMT Content-Length: 0 X-Zfssa-Workflow-Api: 1.1 X-Zfssa-Version: build/generic@2017.02.27,1-0 X-Zfssa-Api-Version: 1.0 Content-Type: application/json; charset=utf-8