Data deletion using dropdown from collection in admin dashboard

I have a collection “product category” which has two fields “category_name”(primary_key), “icon_image” . I have created a admin dashboard where I want to delete a item from this collection using the “category_name”. I have connected a dropdown list with the collection and a button(delete action button). But when I’m trying to delete a selected item from dropdown, the delete button is always deleting the 1st item in collection. But I need to delete the item which I’m selecting in the dropdown. How can I do this? Can anyone help me with a complete explanation?