Files
instasync/delete-all.js
2023-01-01 07:13:01 +00:00

13 lines
270 B
JavaScript

const api = new GhostAdminAPI(config.api);
const config = require('./config.js');
api.posts.browse({
limit: 'all',
filter: 'tag:photo-post'
}).then((posts) => {
posts.forEach((post) => {
console.log(post.title);
api.posts.delete({id: post.id});
});
});