import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.remove(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
$resend = Resend::client('re_xxxxxxxxx');
$resend->automations->remove('c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd');
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Automations.remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Automations.remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Automations.Remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _automation = resend
.automations
.delete("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
.await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
RemoveAutomationResponseSuccess data = resend.automations().remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd");
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" );
var resp = await resend.AutomationDeleteAsync( new Guid( "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd" ) );
Console.WriteLine( "Deleted={0}", resp.Content.Deleted );
curl -X DELETE 'https://api.resend.com/automations/c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend automations delete c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"deleted": true
}
Delete Automation
Remove an existing automation.
DELETE
/
automations
/
:automation_id
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.remove(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
$resend = Resend::client('re_xxxxxxxxx');
$resend->automations->remove('c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd');
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Automations.remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Automations.remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Automations.Remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _automation = resend
.automations
.delete("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
.await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
RemoveAutomationResponseSuccess data = resend.automations().remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd");
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" );
var resp = await resend.AutomationDeleteAsync( new Guid( "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd" ) );
Console.WriteLine( "Deleted={0}", resp.Content.Deleted );
curl -X DELETE 'https://api.resend.com/automations/c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend automations delete c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"deleted": true
}
Path Parameters
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.remove(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
$resend = Resend::client('re_xxxxxxxxx');
$resend->automations->remove('c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd');
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Automations.remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Automations.remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Automations.Remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _automation = resend
.automations
.delete("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
.await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
RemoveAutomationResponseSuccess data = resend.automations().remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd");
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" );
var resp = await resend.AutomationDeleteAsync( new Guid( "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd" ) );
Console.WriteLine( "Deleted={0}", resp.Content.Deleted );
curl -X DELETE 'https://api.resend.com/automations/c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend automations delete c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"deleted": true
}
Was this page helpful?
⌘I