Stop watching multiple pages at one time
Asked by Daisuke Niwa:

Hello there,

We are using Confluence 4.2.

Some of our users did not realize that they would watch pages and other content they created or edited automatically.

They would like to stop watching these contents, however it takes time to do that one by one.

Is there any way to stop watching multiple Confluence pages at one time? Please let me know.

Regards,

Daisuke Niwa


Answers:
author: hsuhailah
body: There's no such feature but there are open feature requests on this at:

- <https://jira.atlassian.com/browse/CONF-8458>

- <https://jira.atlassian.com/browse/CONF-12314>

comments: author: Daisuke Niwa
body: Thanks Hanis,

Understood the situation.

Regards,

Daisuke Niwa


author: Stephen Deutsch
body: If you want a little more fine-grained control over the pages you want to remove watches for, I have also released a set of free user macros that lets you remove watches by selecting with checkboxes (you can also select an entire space at a time). To run them, you have to have the remote API enabled. You can find them here:

[](https://bitbucket.org/stephendeutsch/confluence-user-macros/src)<https://bitbucket.org/stephendeutsch/confluence-user-macros/src>

Click on "bulk remove watchers" and you will see two macros there:

"remove watchers" lets you remove all watchers for a page and its children (you can also re-add in case you want to do some temporary action like moving a bunch of pages), and

"remove watches for user" allows you to remove your personal page watches, or it allows administrators to remove page watches for another user, for example, if an employee leaves the company and you want to remove their watches.

They're pretty easy to use, just copy and paste into the user macro field, set them as visible only for administrators, embed in a page, and you're all set to go.

If there's enough demand, I could release it as a plugin on the marketplace, so send me some feedback: [](mailto:stephen.deutsch@zanox.com)[stephen.deutsch@zanox.com](mailto:stephen.deutsch@zanox.com)

It should be compatible back to Confluence 4, so if you're still using an older version, it might be helpful. Hope it can also help someone!

comments: author: Milo Chan
body: I just came across this, and I think it's really useful! Thank you for writing it. It's a bit quirky, in that it asks to refresh the page when you apply the changes with the buttons, but works great.


author: Chris Kuperstein
body: Wow, this worked perfectly. Thanks!


author: Atul Patil
body: Thanks [@Stephen Deutsch2](/t5/user/viewprofilepage/user-id/853444)


author: Meric Ayman
body: Thank you so much [@Stephen Deutsch2](/t5/user/viewprofilepage/user-id/853444) ! It works perfectly!


author: Anton Kulikov
body: this code help me

    import com.atlassian.confluence.mail.notification.NotificationManager
    import com.atlassian.spring.container.ContainerManager
    import com.atlassian.sal.api.component.ComponentLocator
    import com.atlassian.confluence.pages.PageManager
    import com.atlassian.confluence.search.service.ContentTypeEnum
    import org.slf4j.Logger
    import org.slf4j.LoggerFactory
    import com.atlassian.confluence.user.UserAccessor
    import com.atlassian.confluence.spaces.SpaceManager
    import com.atlassian.user.UserManager?
    Logger log = LoggerFactory.getLogger("console")?

    def userManager = ComponentLocator.getComponent(UserManager)
    NotificationManager nm = ( NotificationManager) ContainerManager.getComponent("notificationManager")
    PageManager pageManager = ComponentLocator.getComponent(PageManager)
    ContentTypeEnum ctp = ComponentLocator.getComponent(ContentTypeEnum)
    UserAccessor userAccessor = ComponentLocator.getComponent(UserAccessor)
    def spaceManager = ComponentLocator.getComponent(SpaceManager)
    def users = userManager.users.find{it.getName() == "username"} 
    def nfu = nm.getNotificationsByUser(userAccessor.getUserByName(users?.getName()))
    nm.removeAllNotificationsForUser(userAccessor.getUserByName(users.getName()))
    return? nm.getNotificationsByUser(userAccessor.getUserByName(users.getName()))


author: Marketa Dvorackova
body: Hello everyone,

mentioned earlier our add-on Watch Remover <https://marketplace.atlassian.com/plugins/it.logontec.dev.watchremover> for a quick removal of watches on pages. There have been many compliments on the add-on in the sense of "quick, clear and easy" and a request to create the same thing for the admin.

Today we have released a new version 0.4.0 with this particular feature, that gives the admin the power to cancel watches for any user within Confluence. The administration part of Watch Remover still offers all the functions of the profile part, i.e. stop watching all for a selected user, stop watching all pages that have not been updated for 60+ days and stop watching all pages within a selected space.

Hope you all like it and come up with other suggestions on how to make it even better! Please try, review and give us a feedback.

Regards,

Marketa

comments: author: Milo Chan
body: Any plans to upgrade this to work with the more recent versions of Confluence?


author: Marketa Dvorackova
body: Hello everybody,

I understand this topic is a bit older, but maybe it would help you to know that we have just released a free plugin that can do exactly what you are looking for: cancel the watches on pages without having to do that one by one. For now you can choose if you want to cancel all of the watches you have (start with a cleared table so to speak) or watches on pages according to the spaces they are in, or watches that are on pages that have not been modified for more than 2 months (keeping up-to-date).

If you are interested, you can check it out here [](https://marketplace.atlassian.com/plugins/it.logontec.dev.watchremover)<https://marketplace.atlassian.com/plugins/it.logontec.dev.watchremover>

Hope it helps someone!