Forums

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

How do I safely delete comments from a page by year?

Bryan Gilbert
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!
October 25, 2019

Hello all,

I have a page in Confluence that has ~400 comments. It is getting unruly and I am looking for an efficient (and safe) way to remove comments in bulk from a page by year.

I am going to take screenshots of the comments by year to archive them somewhere and will be removing them by year as I go.

I noticed that in the database, there is a content table and I can query all content by type (comment) and by page ID. I can also sort by date it looks like. I am concerned that if I delete comments directly from this table, there could be dependencies I am not aware of that could cause issues. Would it be safe to delete comments directly from this content table or is there a better way?

1 answer

1 accepted

2 votes
Answer accepted
Ste Wright
Community Champion
November 3, 2019

Hi @Bryan Gilbert

It's probably safer to use an add-on to accomplish this such as:

Not so sure on the database; it's not the approach I'd take but there's an answer here which might help with that.

Ste

Bryan Gilbert
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!
November 4, 2019

Thank you Stephen!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events