Delete a trigger
curl --request DELETE \
--url https://api.quiva.ai/trigger/triggers/{trigger_type}/{topic} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.quiva.ai/trigger/triggers/{trigger_type}/{topic}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.quiva.ai/trigger/triggers/{trigger_type}/{topic}', 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.quiva.ai/trigger/triggers/{trigger_type}/{topic}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.quiva.ai/trigger/triggers/{trigger_type}/{topic}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.quiva.ai/trigger/triggers/{trigger_type}/{topic}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quiva.ai/trigger/triggers/{trigger_type}/{topic}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status_code": 200
}{
"error": "Invalid request: Missing required field 'name' in trigger definition",
"status_code": 400
}{
"error": "Unauthorized: Invalid or missing authentication token",
"status_code": 401
}{
"error": "Not found: The requested trigger with topic 'my-trigger' does not exist",
"status_code": 404
}{
"error": "Internal server error: Unable to process request at this time",
"status_code": 500
}Triggers
Delete a trigger
Marks a trigger as deleted (poison-pilled). This operation logically removes the trigger from the system while preserving the record.
Usage Notes:
- This operation cannot be undone through the API
- The
trigger_typeandtopicparameters together identify the exact trigger to delete - The system constructs the full subject using these parameters:
ms.trigger.{trigger_type}.{topic} - For gateway triggers, associated mappings remain but are no longer accessible
- For stream triggers, connections between source and target are terminated
- In-flight operations may still complete, but new operations will be rejected
- The trigger remains in the system’s history for audit purposes
DELETE
/
trigger
/
triggers
/
{trigger_type}
/
{topic}
Delete a trigger
curl --request DELETE \
--url https://api.quiva.ai/trigger/triggers/{trigger_type}/{topic} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.quiva.ai/trigger/triggers/{trigger_type}/{topic}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.quiva.ai/trigger/triggers/{trigger_type}/{topic}', 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.quiva.ai/trigger/triggers/{trigger_type}/{topic}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.quiva.ai/trigger/triggers/{trigger_type}/{topic}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.quiva.ai/trigger/triggers/{trigger_type}/{topic}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quiva.ai/trigger/triggers/{trigger_type}/{topic}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status_code": 200
}{
"error": "Invalid request: Missing required field 'name' in trigger definition",
"status_code": 400
}{
"error": "Unauthorized: Invalid or missing authentication token",
"status_code": 401
}{
"error": "Not found: The requested trigger with topic 'my-trigger' does not exist",
"status_code": 404
}{
"error": "Internal server error: Unable to process request at this time",
"status_code": 500
}Authorizations
JWT token for authentication. Required for all API operations to verify identity and access permissions.
Path Parameters
The type of trigger (gateway, stream, subject)
Available options:
gateway, stream, subject The unique topic identifier of the trigger (without the prefix)
Response
Successfully deleted trigger
HTTP status code indicating success
Example:
200