Delete a script
/scripts/{slug}Deletes one of your scripts. The CLI has no delete command, so this endpoint and the app are the only ways.
Scope | Heavy call | Long poll | CLI |
|---|---|---|---|
| No | No | None |
Guidance
Chartnaut does not stop you deleting a script that another of your scripts depends on. Check the
dependenciesof your other scripts with Get a script first.The path takes the bare slug only. When one of your studies shares the slug, add
kind, or you get409 conflictand nothing is deleted.A retry after the first delete landed answers
404 not_found. Treat that as done.
Path parameters
Name | Type | Description |
|---|---|---|
| string | Your script's bare slug |
Query parameters
Name | Type | Required | Default | Description |
|---|---|---|---|---|
| string | No | None |
|
Response
204 with no body.
Status codes
Status | Code | Meaning |
|---|---|---|
| - | The script was deleted |
|
| The path is not a bare slug |
|
| You cannot delete this script |
|
| You have no script with that slug |
|
| A study shares the slug. Add |
|
| The delete failed. Retry |
