Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I delete the page without visiting it?

Kate
Contributor
November 13, 2011

Hi,all!

I can't go to the page (i guess it has some mistakes). How can I delete this page without visiting it?

Thnx :)

3 answers

1 accepted

1 vote
Answer accepted
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2011

You can use the Confluence Command Line Interface removePage action. Another option is to go to another page and look at the link that is produced for tools -> remove page. Copy/paste and replace the page id with the page id of the page you want to delete. You need the page id of the bad page - query the contents table to get that or run something like:

--action getPageList --space spacekey --title "bad page" --children --outputFormat 2

By the way, you might want to use getPageSource first to save the page data.

Kate
Contributor
November 13, 2011

Good advice! thank you!

3 votes
Shreya Rawal
Contributor
October 18, 2018

I found a much easier way of doing this in case anyone else is looking for it. Create a new Dummy page under the same space and using Page Reorder under Content Tools move the page to be deleted under the newly created Dummy page. Delete the Dummy page and the child page.

Jonathan Miller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2018

Thanks, that really was easy.

Like • 2 people like this
Richard Fenton March 8, 2019

Clever :)

Like • martin sturzenegger likes this
mahdi_hosseinali September 18, 2019

In the new update, the parent page adopts the child pages

Bob
Contributor
November 11, 2019

@mahdi_hosseinali 

Possibly even easier solution:

Go te reorder pages, drag the to-be-deleted page to the same level as the "home" page. 

Go to orphaned pages, remove the page with the bin button. 

2 votes
David Peterson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2011

Another option is to use the {link-to} macro from the Linking Page. In that case, you just need the page name. Just add it to another page somewhere in Confluence (in the same Space is the simplest) like so:

{link-to:page remove|page=Name Of Page I Want To Remove}Remove Bad Page{link-to}

Then, just follow the link, and it will ask you to confirm you want to delete the page. Say 'Yes', and you're good to go.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events