Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Each example contains a `README.md` with an explanation about the tool.
| **[Clone Assets ](https://github.com/storyblok/tool-examples/tree/main/clone-assets)** <br/> A tool to clone assets from a space to its clone | [Christian Zoppi](https://github.com/christianzoppi) |
| **[Storyblok Assets Backup ](https://github.com/storyblok/tool-examples/tree/main/storyblok-assets-backup)** <br/> Tool for differential backups of the assets of any Storyblok space | [Christian Zoppi](https://github.com/christianzoppi), [Gerrit Plehn](https://github.com/GerritPlehn) |
| **[Private assets demo ](https://github.com/storyblok/tool-examples/tree/main/private-assets-demo)** <br/> A demo to showcase how to use private assets as gated content | [Edoardo Sandon](https://github.com/edo-san) |
| **[Delete Assets ](https://github.com/storyblok/tool-examples/tree/main/delete-assets)** <br/> A tool to delete assets from a space | [Gloria Morales](https://github.com/gmoraleslondono) |

<!-- AUTO-GENERATED-CONTENT:END -->

Expand Down
31 changes: 31 additions & 0 deletions delete-assets/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import Operation from "./src/index.js";
import inquirer from "inquirer";

const questions = [
{
type: "input",
name: "oauth",
message:
"Please enter your Personal Access Token (get one at http://app.storyblok.com/#!/me/account)",
},
{
type: "input",
name: "target_space_id",
message: "Please enter the Target Space Id",
},
{
type: "input",
name: "simultaneous_uploads",
message: "Simultaneous Uploads",
default: 20,
},
];

inquirer.prompt(questions).then((answers) => {
const operation = new Operation(
answers.oauth,
answers.target_space_id,
answers.simultaneous_uploads
);
operation.start();
});
Loading