Contentful logo

Contentful Community

Best way to clear a space via CLI or library

For testing purposes I would like to delete everything in a space, both content and models. Is there an easy way to do that?

Alternatively I would be happy just deleting all content in a space if a subsequent import overwrites the existing models (e.g. if an Articles model already exists it’s fields will be overwritten by importing the definition of a new articles model with slightly different fields).