InboxKit
  1. DNS
InboxKit
  • Introduction
  • Account
    • Get account details
      GET
  • Workspaces
    • List workspaces
      GET
    • Get workspace details
      GET
    • Create workspace
      POST
    • Update workspace
      PUT
    • Delete workspace
      DELETE
    • Update workspace webhook
      POST
  • Domains
    • Search available domains
      POST
    • Check if domain is banned from registration
      GET
    • Check domain availability
      GET
    • Register domains
      POST
    • List domains
      GET
    • List assignable domains
      GET
    • Set DMARC policy
      POST
    • Remove DMARC policy
      DELETE
    • Remove domains
      POST
    • Set domain forwarding
      POST
    • Set email forwarding
      POST
    • Remove email forwarding
      DELETE
    • Set catch-all email
      POST
    • Remove catch-all email
      DELETE
    • Get nameservers for domain connection
      POST
    • Check nameservers propagation
      POST
  • Mailboxes
    • List mailboxes
    • Show mailbox credentials
    • Get mailbox details
    • Buy mailboxes
    • Check mailbox status
    • Cancel mailboxes
    • Update mailbox
    • Update mailbox profile picture
    • Generate TOTP
    • Change username
    • Change password
    • Check mailbox availability
  • DNS
    • Get DNS records
      GET
    • Add DNS records
      POST
    • Update DNS records
      POST
    • Delete DNS records
      POST
  • Sequencers
    • Export mailboxes status
    • List sequencer platforms
    • List sequencers
    • Export mailboxes
    • Add sequencer
    • Update sequencer
    • Delete sequencers
  • Billing
    • Get pricing plans
    • Get subscription details
    • Change subscription plan
    • Cancel subscription
    • Get wallet details
    • Add credits to wallet
    • Update auto top-up settings
    • Get billing portal link
  1. DNS

Delete DNS records

POST
https://api.inboxkit.com/v1/api/dns/delete
DNS
Maintainer:Not configured
Delete specific DNS records or all records for a domain
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.inboxkit.com/v1/api/dns/delete' \
--header 'X-Workspace-Id;' \
--header 'Content-Type: application/json' \
--data-raw '{}'
Response Response Example
{
    "error": false,
    "message": "2 DNS records deleted successfully",
    "deleted_count": 2,
    "deleted_records": [
        {
            "host": "string",
            "value": "string",
            "type": "string"
        }
    ],
    "remaining_records": 3,
    "dns_record": {
        "uid": "string"
    },
    "records": [
        {
            "host": "string",
            "value": "string",
            "type": "string"
        }
    ]
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
X-Workspace-Id
string <uuid>
required
Workspace identifier
Body Params application/json
optional
Any of
Any of
domain
string 
required
Domain name (required if uid not provided)
Example:
example.com
uid
string 
optional
Domain UID (required if domain not provided)
record_ids
array[string]
required
Array of DNS record IDs to delete (required if delete_all is false)
delete_all
boolean 
optional
Delete all DNS records for the domain
Default:
false
Examples

Responses

🟢200OK
application/json
DNS records deleted successfully
Body
error
boolean 
optional
Example:
false
message
string 
optional
Example:
2 DNS records deleted successfully
deleted_count
integer 
optional
Number of records deleted
Example:
2
deleted_records
array [object {3}] 
optional
Array of deleted records
host
string 
optional
value
string 
optional
type
string 
optional
remaining_records
integer 
optional
Number of remaining records (only for specific deletes)
Example:
3
dns_record
object 
optional
Updated DNS record document
uid
string 
optional
records
array [object {3}] 
optional
host
string 
optional
value
string 
optional
type
string 
optional
🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🔴500Server Error
Modified at 2025-06-20 08:13:43
Previous
Update DNS records
Next
Export mailboxes status
Built with