It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to delete an inaccessible page?

Yves Schumann Nov 14, 2013

Hi all together

I need to delete a page which can't be opened but is visible on the navigation. So the question is, how to determine the page ID of this page!? Every link show's the page's name instead of the ID but to delete a page, the ID must be used. Any suggestions how to do this?

Background: The page uses a redirect witch immediately redirects to another, no longer existing page. Because of this redirect I'ts impossible to "show" the page to access the page menu.

Kind regards,

Yves

3 answers

1 accepted

1 vote
Answer accepted

Hey Yves,

You can get the page's id running the following SQL query:

select contentid from content where title like '%NAME OF YOUR PAGE%' AND contenttype = 'PAGE';



This should return the ID. Once you have it, you just need to get to an admin account, and go to this specific page:

http://YOUR_CONFLUENCE_URL/pages/removepage.action?pageId=ID_FROM_THE_QUERY


This should do the trick.

Cheers,
WZ

Yves Schumann Nov 19, 2013

Hi William,

thx a lot, that did the trick. :-)

Kind regards,

Yves

Roey HalfonWork Nov 03, 2015

Hi Where do I need to to run this query? Thanks.

0 votes
CharlesH Nov 14, 2013

The Reporting plugin can be handy here. The markup below generates a table with columns to edit or delete each page. The Reporting plugin can retrieve the page id easily, even if you can't visit the page to get it:

{report-table}

{local-reporter:content:children|type=page}
{text-sort:content:title}{local-reporter}

{report-column:title=Page Name}
*{report-info:content:title|link=true}*{report-column}

{report-column:title=Page Id}
{report-info:content:id}{report-column}

{report-column:title=Edit}
{report-link:content:id|atlassian-macro-output-type=INLINE|prefix=/pages/editpage.action?pageId\=}Edit{report-link}
{report-column}

{report-column:title=Remove}
{report-link:content:id|atlassian-macro-output-type=INLINE|prefix=/pages/removepage.action?pageId\=}Remove{report-link}
{report-column}

{report-empty}
Cannot generate table - there are no 1st level child pages below the current page.{report-empty}
{report-table}

0 votes
Josch Bencke Nov 14, 2013

Hi Yves,

the redirect is an effect, that is executed by the browser, if I recall correctly.

You could use the Comandline interface (CLI) or the Webdav Interface to open the "wiki path" and then delete the node there.

Good luck,

Josh

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

862 views 0 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you