Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Delete Skill

DeletedSkill skills().delete(params = SkillDeleteParams.none(), requestOptions = RequestOptions.none())
DELETE
/skills/{skill_id}

Delete a skill by its ID.

Delete Skill

package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.skills.DeletedSkill;
import com.openai.models.skills.SkillDeleteParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        OpenAIClient client = OpenAIOkHttpClient.fromEnv();

        DeletedSkill deletedSkill = client.skills().delete("skill_123");
    }
}
200 — Example
{
  "id": "id",
  "deleted": true,
  "object": "skill.deleted"
}
Parameters
SkillDeleteParams params
Optional<String> skillId
Returns
class DeletedSkill:
String id
boolean deleted
JsonValue; object_
constant
constant
Returns Examples
200 — Example
{
  "id": "id",
  "deleted": true,
  "object": "skill.deleted"
}