Delete workflow component
curl --request DELETE \
--url https://api.cloudcruise.com/workflow-components/{component_id} \
--header 'cc-key: <api-key>'import requests
url = "https://api.cloudcruise.com/workflow-components/{component_id}"
headers = {"cc-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'cc-key': '<api-key>'}};
fetch('https://api.cloudcruise.com/workflow-components/{component_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudcruise.com/workflow-components/{component_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"cc-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloudcruise.com/workflow-components/{component_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("cc-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.cloudcruise.com/workflow-components/{component_id}")
.header("cc-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/workflow-components/{component_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["cc-key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyWorkflow API
Delete workflow component
Permanently deletes a workflow component and its full version history.
Embedded instances: Workflows that already contain instances of this component keep their pasted nodes. The nodes remain in the workflow but become unlinked (no longer receive propagation). The frontend overlay falls back to a generic “Component” label for orphaned instance nodes.
Use GET /workflow-components/{component_id}/usage before deleting to see which workflows reference the component.
DELETE
/
workflow-components
/
{component_id}
Delete workflow component
curl --request DELETE \
--url https://api.cloudcruise.com/workflow-components/{component_id} \
--header 'cc-key: <api-key>'import requests
url = "https://api.cloudcruise.com/workflow-components/{component_id}"
headers = {"cc-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'cc-key': '<api-key>'}};
fetch('https://api.cloudcruise.com/workflow-components/{component_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudcruise.com/workflow-components/{component_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"cc-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloudcruise.com/workflow-components/{component_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("cc-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.cloudcruise.com/workflow-components/{component_id}")
.header("cc-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/workflow-components/{component_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["cc-key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyAuthorizations
Response
Component deleted successfully (no content)
Was this page helpful?

