Skip to main content

JS Kit SDK API Reference / Bindings / deleteNameRegistry

Function: deleteNameRegistry()

deleteNameRegistry(params): Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>

Defined in: bindings/deleteNameRegistry.ts:49

Deletes a raw SPL Name Registry account and refunds the associated rent balance to the specified target.

This low-level helper accepts a raw registry seed/name and does not parse .sns or .sol suffixes.

Parameters

params

DeleteNameRegistryParams

Deletion parameters

Returns

Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>

Transaction instruction.

Example

const instruction = await deleteNameRegistry({ rpc, name: "example", refundAddress });