Skip to content
Ona Docs

DeletePrompt

client.agents.deletePrompt(AgentDeletePromptParams { promptId } body, RequestOptionsoptions?): AgentDeletePromptResponse
POST/gitpod.v1.AgentService/DeletePrompt

Deletes a prompt.

Use this method to:

  • Remove unused prompts
ParametersExpand Collapse
body: AgentDeletePromptParams { promptId }
promptId?: string
formatuuid
ReturnsExpand Collapse
AgentDeletePromptResponse = unknown

DeletePrompt

import Gitpod from '@gitpod/sdk';

const client = new Gitpod({
  bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});

const response = await client.agents.deletePrompt();

console.log(response);
{}
Returns Examples
{}