Skip to main content
Glama

liara_delete_dns_record

Remove a DNS record from the Liara cloud platform by specifying the zone and record IDs to manage your domain configurations.

Instructions

Delete a DNS record

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zoneIdYesThe zone ID
recordIdYesThe record ID to delete

Implementation Reference

  • The handler function that executes the deletion of a specific DNS record from a Liara DNS zone using the Liara API.
    export async function deleteRecord(
        client: LiaraClient,
        zoneId: string,
        recordId: string
    ): Promise<void> {
        validateRequired(zoneId, 'Zone ID');
        validateRequired(recordId, 'Record ID');
        await client.delete(`/v1/zones/${zoneId}/records/${recordId}`);
    }
  • Type definitions for DNS records and create requests, relevant for delete operations as they define the structure of records.
    export type DnsRecordType = 'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'NS' | 'SRV';
    
    export interface CreateDnsRecordRequest {
        type: DnsRecordType;
        name: string;
        value: string;
        ttl?: number;
        priority?: number;
    }
  • Imports validation helpers used in the deleteRecord function.
    import { validateRequired, unwrapApiResponse } from '../utils/errors.js';
  • Interface defining the structure of a DNS record.
    export interface DnsRecord {
        _id: string;
        zoneID: string;
        type: DnsRecordType;
        name: string;
        value: string;
        ttl: number;
        priority?: number;
    }
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/razavioo/liara-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server