Ruby
Helo.configure do |config|
config.api_key = ENV.fetch("HELO_API_KEY")
end
id = "550e8400-e29b-41d4-a716-446655440000"
Helo::Domains.delete(id)import Helo from "@helo-email/sdk";
const apiKey = process.env.HELO_API_KEY;
const helo = new Helo(apiKey);
await helo.domains.del("550e8400-e29b-41d4-a716-446655440000");package main
import (
"context"
"log"
"os"
"github.com/helo-email/helo-sdk-go"
)
func main() {
client := helo.NewHelo(os.Getenv("HELO_API_KEY"))
ctx := context.Background()
if err := client.Domains.Delete(ctx, "550e8400-e29b-41d4-a716-446655440000"); err != nil {
log.Fatal(err)
}
}await helo.Domains.Delete("domain-id");import sdk_helo_email as helo
client = helo.Helo() # reads HELO_API_KEY from the environment
client.domains.delete("domain-id"){
"type": "<string>",
"title": "<string>",
"instance": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"requestId": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"instance": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"requestId": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"instance": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"requestId": "<string>",
"errors": {}
}Domains
Delete a domain
Removes a domain from the account. This will stop all email sending from this domain.
DELETE
/
domains
/
{id}
Ruby
Helo.configure do |config|
config.api_key = ENV.fetch("HELO_API_KEY")
end
id = "550e8400-e29b-41d4-a716-446655440000"
Helo::Domains.delete(id)import Helo from "@helo-email/sdk";
const apiKey = process.env.HELO_API_KEY;
const helo = new Helo(apiKey);
await helo.domains.del("550e8400-e29b-41d4-a716-446655440000");package main
import (
"context"
"log"
"os"
"github.com/helo-email/helo-sdk-go"
)
func main() {
client := helo.NewHelo(os.Getenv("HELO_API_KEY"))
ctx := context.Background()
if err := client.Domains.Delete(ctx, "550e8400-e29b-41d4-a716-446655440000"); err != nil {
log.Fatal(err)
}
}await helo.Domains.Delete("domain-id");import sdk_helo_email as helo
client = helo.Helo() # reads HELO_API_KEY from the environment
client.domains.delete("domain-id"){
"type": "<string>",
"title": "<string>",
"instance": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"requestId": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"instance": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"requestId": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"instance": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"requestId": "<string>",
"errors": {}
}⌘I