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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,393
Community Members
 
Community Events
176
Community Groups

Bulk removing your Watched pages/spaces, Save for Later, and Drafts

Reviewing my Atlassian Confluence profile within our enterprise install, I see a lot of detritus out there. Years worth of watched pages, watched spaces, Save for Later, and Drafts. Looking for a solution to any of it, I found code from 2014 on this page from a deleted user: https://community.atlassian.com/t5/Confluence-questions/Bulk-Unwatch-pages/qaq-p/248164

That idea was the nudge I needed to help me create additional derivative snippets, and package it all together in one post, in hopes of helping others.

Environment:
All snippets were successfully ran on Atlassian Confluence 7.4 Enterprise

Tools:
Your browser's Developer Tools console

Directions:

  1. In your web browser of choice, open the Developer Tools and get to the "Console" (Use a DuckDuckGo search if you can't find it)
  2. In the console, near the ">>" or ">" (depending on browser), paste in the code and hit enter.
  3. Repeat as often as needed.

What each code does:

The code uses the class of the hyperlink to click matching links for the user, and then a reload of the page, which displays the next page of items. Note that the number of pages is now reduced by one.

It is not a one-click solution, but it is much faster than clicking one at a time. >10k items that were out there for years, were cleaned up in minutes. Good luck!

Disclaimer:

Mostly likely you have no reason to trust me or my writing (or anyone else's writing, etc.). So don't. Don't use these code snippets or any code anywhere if you don't understand it. If you use it, it's on you. Test. YMMV.

Bulk Remove Confluence Watches

$(function(){
$('.link-stop-watching').click();
setTimeout(function(){location.reload();},2000);
});

Bulk Remove Confluence "Save for Later"

$(function(){
$('.aui-iconfont-star-filled').click();
setTimeout(function(){location.reload();},2000);
});

Bulk Remove Confluence Drafts

$(function(){
$('.discard-draft-link').click();
setTimeout(function(){location.reload();},2000);
});

 

If anyone can level this up, PLEASE DO! Improvements, alternatives, etc., are welcome!

0 comments

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events