项目作者: contentstack

项目描述 :
Contentstack's Bulk Delete Utility allows you to perform bulk delete operations. That means, that it is possible to delete all content types or a specific content type(s), and all assets in just one operation.
高级语言: JavaScript
项目地址: git://github.com/contentstack/contentstack-bulk-delete.git
创建时间: 2019-12-16T06:29:55Z
项目社区:https://github.com/contentstack/contentstack-bulk-delete

开源协议:

下载


Contentstack Bulk Delete Utility

Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content.

Contentstack’s Bulk Delete Utility allows you to perform bulk delete operations. That means, that it is possible to delete all content types or a specific content type(s), and all assets in just one operation.

Installation

Download this project and install all the modules using following command.

  1. npm install

Configuration

Update configuration details at config/index.js

  1. {
  2. master_locale: {
  3. name: '', // Stack's master locale. ex: 'English - United States'
  4. code: '' // Stack master locale's code. ex: 'en-us'
  5. },
  6. email: '', // Your registered email id
  7. password: '', // Account password
  8. source_stack: '' // Stack api_key
  9. content_types_list:'', //optional: For specify the specific contenttypes in array eg: ['product', 'category']
  10. assetsdelete: true //Set Bollean value, Example: true or false
  11. ...
  12. }

Usage

After setting the configuration, you can run the below given commands!

Delete a specific module

  1. $ npm run delete-assets
  2. $ npm run delete-contenttypes
  3. $ npm run start

Known issues

  • Empty folder in assets will not be deleted.

License

This project is licensed under MIT license