Skip to content

datasources delete

Deletes a datasource from a Storyblok space by name or ID. Asks for confirmation before deleting.

Terminal window
storyblok datasources delete [arguments] [flags]
Argument Type Description
Datasource name string Required. The name of a single datasource to delete. Note that the actual name (including upper/lower case) is used, as opposed to the slug.
Flag Type Description
--space integer Required. The ID of the Storyblok space to delete the datasource from.
--id integer Optional. The ID of the Storyblok datasource to delete. If provided, the datasource ID takes priority over the datasource name.

The following examples assume that a space has been defined in a configuration file.

Terminal window
# Delete a datasource by name
storyblok datasources delete colors
# Delete a datasource by ID
storyblok datasources delete --id 140731465546051

Was this page helpful?

What went wrong?

This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.