Remove a method
DELETE
/v1/methods/{method}
const url = 'https://api.pensievelabs.co/v1/methods/fine-tuning';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”method
required
A post-training method’s slug, such as fine-tuning. See List methods for what your workspace has.
string
Example
fine-tuningResponses
Section titled “Responses”The removed method.
Media typeapplication/json
object
id
required
string
object
required
string
deleted
required
Example
{ "deleted": true}default
Section titled “default”Something went wrong; error.type says what.
Media typeapplication/json
object
error
required
object
type
required
string
message
required
string
param
The request field the error is about.
string | null
request_id
required
string
Example
{ "error": { "type": "invalid_request" }}