import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.events.remove('user.created');
$resend = Resend::client('re_xxxxxxxxx');
$resend->events->remove('user.created');
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Events.remove("user.created")
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Events.remove("user.created")
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Events.Remove("user.created")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _event = resend.events.delete("user.created").await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
RemoveEventResponseSuccess data = resend.events().remove("user.created");
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" );
var resp = await resend.EventDeleteAsync( "user.created" );
Console.WriteLine( "Deleted={0}", resp.Content.Deleted );
curl -X DELETE 'https://api.resend.com/events/user.created' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend events delete user.created
{
"object": "event",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"deleted": true
}
Delete Event
Remove an existing event.
DELETE
/
events
/
:id
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.events.remove('user.created');
$resend = Resend::client('re_xxxxxxxxx');
$resend->events->remove('user.created');
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Events.remove("user.created")
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Events.remove("user.created")
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Events.Remove("user.created")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _event = resend.events.delete("user.created").await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
RemoveEventResponseSuccess data = resend.events().remove("user.created");
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" );
var resp = await resend.EventDeleteAsync( "user.created" );
Console.WriteLine( "Deleted={0}", resp.Content.Deleted );
curl -X DELETE 'https://api.resend.com/events/user.created' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend events delete user.created
{
"object": "event",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"deleted": true
}
Path Parameters
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.events.remove('user.created');
$resend = Resend::client('re_xxxxxxxxx');
$resend->events->remove('user.created');
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Events.remove("user.created")
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Events.remove("user.created")
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Events.Remove("user.created")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _event = resend.events.delete("user.created").await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
RemoveEventResponseSuccess data = resend.events().remove("user.created");
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" );
var resp = await resend.EventDeleteAsync( "user.created" );
Console.WriteLine( "Deleted={0}", resp.Content.Deleted );
curl -X DELETE 'https://api.resend.com/events/user.created' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend events delete user.created
{
"object": "event",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"deleted": true
}
Was this page helpful?
⌘I