How to delete multiple pages?
Permalink
I would like to delete about 3000 individual pages. Can someone tell me how I can select multiple pages at once to delete. Clicking delete in te sitemap one by one will take ages.
I've found it.
If you go to the parent page in Sitemap and from the drop-down choose "search pages" you'll be given a list of the child pages. Set the number of pages per view as necessary, click the check box at the top of the column (basically select all) and then from the drop-down in the top left select your bulk action, e.g. delete.
Hope this helps.
If you go to the parent page in Sitemap and from the drop-down choose "search pages" you'll be given a list of the child pages. Set the number of pages per view as necessary, click the check box at the top of the column (basically select all) and then from the drop-down in the top left select your bulk action, e.g. delete.
Hope this helps.
Wow - Search Pages is a really powerful little tool...thank you for drawing my attention to it!
This still works in 2019 if anyone is wondering.
If you can't do a bulk deletion, it might be faster to go to Dashboard -> Sitemap and drag all the pages that you want to delete underneath some other page and then delete that top-level page you moved them all under, because deleting a page in the sitemap also deletes all of its children/sub-pages.
this s genius. Thanks!
But you can't select and therefore drag multiple pages?
But you can't select and therefore drag multiple pages?
Or just use the API:
$pl = new PageList(); // add some filters like: $pl->filterByPath('/'.$country); $pages = $pl->get(); foreach ($pages as $page) { $page->delete(); }
You could do it programatically using filtered page list results, but if you don't have a decent knowledge of the C5 APIs then you could easily mutilate your site if you're not careful.