Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How do you see and delete drafts in Confluence Cloud ?

Alright, so I know I've seen this asked before.  But all the responses seem to be for DC and not for cloud.  I have created a couple drafts by accident (clicking + when I want to copy a page, for instance) and then closing the new page.

What has happened is then the parent page gets a nice little arrow like there's content below it but when I click the down arrow... nothing.  When I go to DRAFTS... nothing.  How do I find and delete draft pages in Confluence Cloud?  The side arrow is really impacting my OCD even though I'm pretty sure no one else sees it but me...

TIA

Ed

1 answer

1 accepted

1 vote
Answer accepted
Andrii Maliuta
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.
Feb 01, 2023

Hello @Ed Mallette ,

If you cannt see drafts in https://YOUR_SITE.atlassian.net/wiki/home/drafts, you can ytry REST API: 

https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-get.

You can get the with 'status' query parameter, as:

https://YOUR_SITE.atlassian.net/wiki/rest/api/content?status=draft

 The same for space or branch level.

And after that you can send DELETE request by the draft id to delete it.

Hi @Andrii Maliuta!

Could you please advise if this REST API method (content?status=draft) still returns only my personal drafts? When do the call in Postman app it seems that I get only list of my drafts as I use Basic Auth with my credentials...

Is there a way to get drafts for all users or this is not possible via Postman and some sort if user impersonation is needed?

Thanks!

Andrii Maliuta
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.
Jun 21, 2023 • edited

Hello @Anton Kozhin ,

Yes, looks like currently for Cloud Confluence in Rest API v1 the ``` content?status=draft ``` returns just current user drafts, but I suppose it is possible to first get the list of pages for the definite author and then get drafts for these page IDs. 

E.g.:

1. Use CQL to get some user's pages:

https://INSTANCE.atlassian.net/wiki/rest/api/search?cql=type=page%20and%creator=%{USER_KEY}%22&expand=content.body.view.value,content.extensions,content.history

2. Loop through the IDs of the returned pages :

https://INSTANCE.atlassian.net/wiki/rest/api/content/{PAGE_ID}?status=draft

Documents:

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events