Delete a Service
curl --request POST \
--url https://api.cycls.ai/v1/deployment/delete \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "my-function"
}
'import requests
url = "https://api.cycls.ai/v1/deployment/delete"
payload = { "name": "my-function" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'my-function'})
};
fetch('https://api.cycls.ai/v1/deployment/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": "Service 'my-function' deleted successfully."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Deployments
Delete a Service
POST
https://api.cycls.ai
/
v1
/
deployment
/
delete
Delete a Service
curl --request POST \
--url https://api.cycls.ai/v1/deployment/delete \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "my-function"
}
'import requests
url = "https://api.cycls.ai/v1/deployment/delete"
payload = { "name": "my-function" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'my-function'})
};
fetch('https://api.cycls.ai/v1/deployment/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": "Service 'my-function' deleted successfully."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
APIKeyHeaderHTTPBearer
Your Cycls API key, from https://cloud.cycls.com. Sent as the X-API-Key header. This is the CYCLS_API_KEY the CLI uses.
Body
application/json
Service name to delete
Example:
"my-function"
Response
Successful Response
Result message
Example:
"Service 'my-function' deleted successfully."