Skip to content

Remove a method

DELETE
/v1/methods/{method}
curl --request DELETE \
--url https://api.pensievelabs.co/v1/methods/fine-tuning \
--header 'Authorization: Bearer <token>'

It leaves the list, and the agents stop choosing it. Experiments that used it keep it on record, and each version stays readable with version, so a result still leads back to the text the agents followed. Its slug can’t be used again. A method a queued or running experiment uses, or a built-in one, can’t be removed.

method
required

A post-training method’s slug, such as fine-tuning. See List methods for what your workspace has.

string
<= 64 characters /^[a-z0-9]+(-[a-z0-9]+)*$/

Example

fine-tuning

The removed method.

Media typeapplication/json
object
id
required
string
object
required
string
deleted
required

Example

{
"deleted": true
}

Something went wrong; error.type says what.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request authentication permission not_found conflict rate_limit not_available server
message
required
string
param

The request field the error is about.

string | null
request_id
required
string

Example

{
"error": {
"type": "invalid_request"
}
}