Initial version.
This commit is contained in:
12
delete-all.js
Normal file
12
delete-all.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user