← Public packages
@kentcdodds/raycast
Raycast launcher: stored execute commands via webhooks (canonical; do not use raycast-shortcuts).
src/delete-command.ts
15 lines · 463 B · TypeScriptimport { deleteCommandRecord } from './commands-store.ts'
/**
* Delete a Raycast execute command from package storage by id.
*
* @param input.id - Command id
* @returns Whether a record was deleted
*
* @example
* import deleteCommand from 'kody:@kentcdodds/raycast/delete-command'
* await deleteCommand({ id: 'ping-discord-general' })
*/
export default async function deleteCommand(input: { id: string }) {
return await deleteCommandRecord(input.id)
}