Is there a way to delete a page without going to the page?

I was playing around the JIRA issues macro when I somehow created an error. Every time I go to the page with the macro, I get the "System Error" page instead. I don't really need the macro and I don't have time to troubleshoot it right now, so I'd rather just get rid of the offending page. But I can't seem to find a way to remove it without going to the page itself - which just gives me the error message. Any ideas?

Thanks,

Jason

4 answers

1 accepted

Hi Jason,

You do not need to remove the page..

You can try to figure out page ID .. go direcly to page history (Tools > Page History) on any working page and using link like that will appear on the top

http://yourconfluence/pages/viewpreviousversions.action?pageId=1234567

change the page ID at the end to the one that is not working and restore to the version that you know that was ok..

I hope that will help

Regards,

Mirek

This sounds perfect! My only problem now is how can I get the page id when I can't actually go to the page? I'm comfortable navigating through the database if need be - I just need to know where to look.

Thanks,

Jason

Hi Jason,

There is a few ways of doing that without accessing the database.. I can describe few different and maybe you can use one of them.. I not we can try more options :) ..

First..

If this page was recently updated you can go to the space were the page is choose Browse and Pages.. If you will look at Recently Updated then you will notice a list of pages with titles and a link (view change).. Hower over this link and you should notice the page ID in the URL.. More! If you will click on this link you will see not only what is the different from the previous version but there should be also a link to Page History! This is a thing that you are looking for.. At least on Confluence 4.2 :)


Second..

If the above method will not work or you will not see the page on Recently Updated section you can use Firebug or other tool like that build in your browser and monitor for GET reqests and responses from the console when trying to view the page. This sounds like more complex method but it is working fine for me.. I am always finding the correct information that I am looking for..

But if from some reason you are not able to find it in that way..

Third..

If you have access to the log files.. You try to view the page and look what error you are recieving. It should contain information about ID of the page that was not found

I hope that one of the above way will work.. If not please add a comment and we will look for other solutions :)

Regards,

Mirek

Mirek - Option 1 worked perfectly! I was able to use the pageID and revert it to a working version. Your tips are definitely going into my "Handy Tricks" book!

Thanks,

Jason

If you're comfortable with directly accessing the database, find the page ID and remove it from the CONTENT and BODYCONTENT tables.

Needed this today, thanks! Had to include Mirek's first option to get the pageid as its not readily available to a page that won't open.

If you have the Reporting plugin then this can help produce a table listing child pages with li ks to edit or remove each page without needing to visit that page. See the code I shared in this topic: https://answers.atlassian.com/questions/58146/there-is-a-macro-that-receives-the-id-of-a-page-and-display-the-button-to-add-to-favorites-and-to-watch-the-page?page=1

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

292 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you