cancel
Showing results for 
Search instead for 
Did you mean: 

Can I delete a discussion reply?

vassilisx
Champ in-the-making
Champ in-the-making
Hello,

I recently observed that I had replied in a faulty way to some Discussion Topic and tried to edit my reply. The response I got when I pressed "Update" after correcting the reply was an unexpected "Unable to save reply". I tried to reproduce this with some other topics and replies, but to no avail. Has anyone had similar problems?
(I suspect it might have something to do with the ssl certificate expiring?)

Anyway, I also noticed that there is no option to delete a reply to a discussion. Can this be made possible in some way?
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
I cannot recreate your problem around discussion updates. Perhaps it was due to the certificate problem.

I agree that it is weird there is not a "Delete" UI action on Share discussion replies. I have never noticed that before.

I'm sorry that menu item isn't there for you. If you are in a pinch you can always use JavaScript to delete the reply. I like to have Florian Maul's JavaScript Console installed for just such an occasion.

If you use the Node Browser to search for or navigate to the reply you want to delete, you can grab its node reference. With that you can then use JavaScript to delete it, like this:
var reply = search.findNode('workspace://SpacesStore/ab985b53-ec50-426a-bbae-a75fc8efffa9');
reply.remove();

If you don't want to use JavaScript for some reason and you have a tool that can issue HTTP methods handy (like curl), you can also delete it like this:
curl -X DELETE -uadmin:admin http://localhost:8080/alfresco/s/api/node/workspace/SpacesStore/a40cae26-062c-4425-bb93-3bf9ae28749a

Make sure you are deleting the reply and not the topic.

Jeff

vassilisx
Champ in-the-making
Champ in-the-making
thanx a lot Jeff. Your post is very helpful.

Vassilis

jpotts
World-Class Innovator
World-Class Innovator
No problem. I've also let product management know about the need for that Delete link in the Discussion form.

Jeff