I am getting 502 error while trying to delete topics created by specific user

Continued in How to execute server-side code when clicking a button?