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

**URL:** <https://meta.discourse.org/t/i-am-getting-502-error-while-trying-to-delete-topics-created-by-specific-user/261161>\
**Category:** Support\
**Created:** [April 10, 2023, 9:31am UTC](https://meta.discourse.org/t/i-am-getting-502-error-while-trying-to-delete-topics-created-by-specific-user/261161 "2023-04-10T09:31:52Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Yogesh\_g](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yogesh_g/32/253636_2.png) [@Yogesh\_g](https://meta.discourse.org/u/Yogesh_g)\
**Post date:** [April 17, 2023, 9:22pm UTC](https://meta.discourse.org/t/i-am-getting-502-error-while-trying-to-delete-topics-created-by-specific-user/261161/8 "2023-04-17T21:22:44Z")

</div>

@ [Michael Brown](https://meta.discourse.org/u/supermathie) @southpaw I have created a plugin to delete posts of a user in batches of a given number. I have written some Ruby code to delete posts. Currently I am using settings api to take input from admin.

The challenge I am facing is that. I want to create a admin page for plugin that has a some input fields and a button. I want my Ruby code to run on click of that button.

I have tried someways but failed.

Need help, Is there any possible way to achieve it in discourse?

---

_[View the full topic](https://meta.discourse.org/t/i-am-getting-502-error-while-trying-to-delete-topics-created-by-specific-user/261161)._
