Delete a skill by its ID.
client.Skills.Delete(ctx, skillID) (*DeletedSkill, error)
DELETE/skills/{skill_id}
Delete a skill by its ID.
Parameters
skillID string
Returns
Delete a skill by its ID.
package main
import (
"context"
"fmt"
"github.com/openai/openai-go"
"github.com/openai/openai-go/option"
)
func main() {
client := openai.NewClient(
option.WithAPIKey("My API Key"),
)
deletedSkill, err := client.Skills.Delete(context.TODO(), "skill_123")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", deletedSkill.ID)
}
{
"id": "id",
"deleted": true,
"object": "skill.deleted"
}Returns Examples
{
"id": "id",
"deleted": true,
"object": "skill.deleted"
}