ChartnautDocs

Remove from your library

DELETE/library/{author}/{slug}

Takes a script you added out of your library, as removing it in the app does. It stops running for you until you add it again. The scripts that were added with it stay in your library.

Scope

Heavy call

Long poll

CLI

scripts:write

No

No

chartnaut library remove

Guidance

  • Only another author's script that you added can be removed. Your own scripts stay in your library; delete one with Delete a script. Chartnaut's built-ins cannot be removed.

  • It works even after the author made the script private or archived it, so you can always clear out what you added.

  • When you added an indicator and a definition with the same author and slug, send kind to say which. Without it the call answers 409 conflict.

  • A retry after the first call landed answers 404 not_found. Treat that as done.

Path parameters

Name

Type

Description

author

string

The author's username, in any letter case

slug

string

The script's slug, without @N

Query parameters

Name

Type

Required

Default

Description

kind

string

No

None

indicator or definition, when you added both with that slug

Response

200 with removed: true, the ref you removed and its kind.

Status codes

Status

Code

Meaning

200

-

Removed from your library

400

invalid_request

It is your own script or a built-in, the path has @N, or kind is not one of its values

404

not_found

It is not in your library

409

conflict

You added an indicator and a definition with that slug. Add kind