Script to get unused images and assets in Storyblok
This is a small script you can use to get unused images and other assets from your content items and put them in a folder.
How to use
-
Create a folder where you want to put the unused images into. Hover over the folder symbol and note down the folder id.
-
Get your Oauth token from the My account section of Storyblok
-
Exchange YOUR_OAUTH_TOKEN, YOUR_SPACE_ID and YOUR_FOLDER_ID in
index.js
with your values -
Execute the script
$ npm install
$ node index.js