Can we find out who deleted a question or an answer in confluence questions?

I'm trying to find out who deleted an answer in Confluence Questions, I have used the below query:

            select um.username, c.title, s.spacename, c.lastmoddate
            from content c
            join user_mapping um on c.lastmodifier = um.user_key
            join spaces s on c.spaceid = s.spaceid
            where c.content_status = 'deleted' and contenttype = 'CUSTOM'
            order by username;   

But it looks the answers once deleted are removed from the DB? Is that true?

2 answers

2 accepted

2 votes
Accepted answer
Gonchik Tsymzhitov Community Champion Oct 31, 2017

Looks like it is true.

I have checked on backup and test db, really different. 


Hence better way is review backup file.

Going back to the backup is not the solution, I need to know who deleted the answer, in my case it is one of the system administrators, but who did it?

Gonchik Tsymzhitov Community Champion Nov 02, 2017

I have idea, it is review access logs. 

Just create a sample answer and after delete it. 

Then you can create a specific pattern for review for example your nginx/httpd logs.



Gonchik Tsymzhitov

I agree, I tried to understand what is the url hit when an answer is deleted.

1 vote
Accepted answer

Dear Mustafa,

The query that you are using on the database will not work. When a question is deleted, the database entry will also be removed. The only way you can restore the answer is through a back-up.

As for seeing who exactly deleted what, within Confluence as a whole.. this is simply not a feature within Confluence. As an example I will take page deletion history;

This feature request has been open since 2005, which is asking for more detail into who deleted pages.

It seems that the team behind Confluence is not, at least for the time being.. considering deletion history as something they would like to implement.


You will not be able to find out through Confluence who deleted the answer.

Friendly Regards,

Jeremy Mooiman

Sure, I can retrieve it from the back up, but who deleted it?

Jeremy Atlassian Community Champion Nov 01, 2017

Dear Mustafa,

Like I said in my answer.. unfortunately.. you cannot see this right now.

Friendly Regards,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

458 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you