Delete webhook destination
Delete webhook destination: deleteWebhookDestination in the TypeScript, Python, Rust and Go clients.
DELETE /v1/projects/{projectId}/webhooks/destinations/{destinationId}
Deletes the selected project's destination and returns its stable tombstone. Repeated deletion returns the deletion representation. This operation removes the destination configuration; it is separate from disabling a destination through an update.
photon.projects.deleteWebhookDestination(input: DeleteWebhookDestinationInput, options?: RequestOptions): Promise<DeleteWebhookDestinationOutput>photon.projects.delete_webhook_destination(input: DeleteWebhookDestinationInput, *, options: RequestOptions | None = None) -> models.WebhookDestinationclient.delete_webhook_destination(destination_id: String, project_id: String).await -> Result<ResponseValue<types::WebhookDestination>, Error<DeleteWebhookDestinationError>>client.Projects.DeleteWebhookDestination(ctx context.Context, params *DeleteWebhookDestinationParams, opts ...RequestOption) (*WebhookDestination, error)import { Photon } from "@photon-ai/api";
const photon = new Photon({
headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.deleteWebhookDestination({
path: {
destinationId: "destinationId",
projectId: "projectId",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import DeleteWebhookDestinationInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.projects.delete_webhook_destination(
DeleteWebhookDestinationInput.model_validate({
"path": {
"destinationId": "destinationId",
"projectId": "projectId",
},
})
)use photon_ai_api::{Credential, PhotonClientBuilder, SecretString};
let token = std::env::var("PHOTON_API_TOKEN")?;
let client = PhotonClientBuilder::new()
.credential("accountServiceKey", Credential::Bearer(SecretString::from(token)))
.build()?;
let result = client
.delete_webhook_destination("destinationId".to_owned(), "projectId".to_owned())
.await
.map_err(|error| format!("{error:?}"))?
.into_inner();import (
"context"
"os"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient(photonapi.WithAPIKey(os.Getenv("PHOTON_API_TOKEN")))
result, err := client.Projects.DeleteWebhookDestination(ctx, &photonapi.DeleteWebhookDestinationParams{
DestinationID: "destinationId",
ProjectID: "projectId",
})
if err != nil {
return err
}
_ = result{
"apiVersion": "2026-01-01",
"createdAt": "2026-01-01T00:00:00.000Z",
"deletedAt": null,
"description": null,
"destinationId": "string",
"enabledEvents": [
null
],
"name": "string",
"projectId": "string",
"status": "enabled",
"updatedAt": "2026-01-01T00:00:00.000Z",
"url": "https://example.com"
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 The stable webhook destination tombstone. WebhookDestination
Headers: Photon-Version. The raw response carries these headers; see Raw responses.