Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

On this pageOverview

Delete Automation

DELETE

/

automations

/

:automation_id

Node.js
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.automations.remove(
  'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
PHP
$resend = Resend::client('re_xxxxxxxxx');

$resend->automations->remove('c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd');
Python
import resend

resend.api_key = "re_xxxxxxxxx"

resend.Automations.remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
Ruby
require "resend"

Resend.api_key = "re_xxxxxxxxx"

Resend::Automations.remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
Go
package main

import "github.com/resend/resend-go/v4"

func main() {
	client := resend.NewClient("re_xxxxxxxxx")

	client.Automations.Remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
}
Rust
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(())
}
Java
import com.resend.Resend;
import com.resend.core.exception.ResendException;
import com.resend.services.automations.model.DeleteAutomationResponseSuccess;

public class Main {
    public static void main(String[] args) throws ResendException {
        Resend resend = new Resend("re_xxxxxxxxx");

        DeleteAutomationResponseSuccess data = resend.automations().remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd");
    }
}
.NET
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
curl -X DELETE 'https://api.resend.com/automations/c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd' \
     -H 'Authorization: Bearer re_xxxxxxxxx'
CLI
resend automations delete c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd
Response
{
  "object": "automation",
  "id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
  "deleted": true
}
Node.js
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.automations.remove(
  'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
PHP
$resend = Resend::client('re_xxxxxxxxx');

$resend->automations->remove('c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd');
Python
import resend

resend.api_key = "re_xxxxxxxxx"

resend.Automations.remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
Ruby
require "resend"

Resend.api_key = "re_xxxxxxxxx"

Resend::Automations.remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
Go
package main

import "github.com/resend/resend-go/v4"

func main() {
	client := resend.NewClient("re_xxxxxxxxx")

	client.Automations.Remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd")
}
Rust
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(())
}
Java
import com.resend.Resend;
import com.resend.core.exception.ResendException;
import com.resend.services.automations.model.DeleteAutomationResponseSuccess;

public class Main {
    public static void main(String[] args) throws ResendException {
        Resend resend = new Resend("re_xxxxxxxxx");

        DeleteAutomationResponseSuccess data = resend.automations().remove("c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd");
    }
}
.NET
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
curl -X DELETE 'https://api.resend.com/automations/c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd' \
     -H 'Authorization: Bearer re_xxxxxxxxx'
CLI
resend automations delete c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd
JSON
{
  "object": "automation",
  "id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
  "deleted": true
}

Was this page helpful?

⌘I

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu