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.

View Replies:
beebs93 replied on at Permalink Reply
beebs93
I brought this up with the devs during one the online video sessions and there is currently no way to select multiple pages to delete/move all at once.

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.
jgabbani replied on at Permalink Reply
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.
kspitzley replied on at Permalink Reply
kspitzley
Wow - Search Pages is a really powerful little tool...thank you for drawing my attention to it!
jordanlev replied on at Permalink Reply
jordanlev
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.
imJack replied on at Permalink Reply
imJack
this s genius. Thanks!
jgabbani replied on at Permalink Reply
But you can't select and therefore drag multiple pages?
jgabbani replied on at Permalink Reply
But you can't select and therefore drag multiple pages?
msglueck replied on at Permalink Reply
msglueck
Or just use the API:
$pl = new PageList();
// add some filters like:
$pl->filterByPath('/'.$country);
$pages = $pl->get();
foreach ($pages as $page) {
   $page->delete();
}