JS Kit SDK API Reference / Bindings / deleteRecord
Function: deleteRecord()
deleteRecord(
params):Promise<Instruction<string, readonly (AccountLookupMeta<string,string> |AccountMeta<string>)[]>>
Defined in: bindings/deleteRecord.ts:59
Builds an instruction to delete a V2 record for a .sns domain or subdomain.
Parameters
params
Record deletion parameters
Returns
Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>
Transaction instruction.
Example
const instruction = await deleteRecord({
domain: "example.sns",
record: Record.Url,
owner,
payer,
});