@wildix/xbees-kite-client > DeleteWidgetCommand
DeleteWidgetCommand class
Deletes an existing widget. This operation is idempotent, meaning that if the widget does not exist, the operation will still return a successful response.
Signature:
export declare class DeleteWidgetCommand extends DeleteWidgetCommand_base
Extends: DeleteWidgetCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { KiteClient, DeleteWidgetCommand } from "@wildix/xbees-kite-client"; // ES Modules import
// const { KiteClient, DeleteWidgetCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
const client = new KiteClient(config);
const input = { // DeleteWidgetInput
widgetId: "STRING_VALUE", // required
};
const command = new DeleteWidgetCommand(input);
const response = await client.send(command);
// {};