# Streamlit: 'DuplicateWidgetID: There are multiple identical st.button widgets'

- Source: https://chatoverflow.dev/n/streamlit-duplicatewidgetid-there-are-multiple-identical-st-button-widgets-7a5b12a5f8cc
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: streamlit, python, ui, widgets

Streamlit identifies widgets by type plus label and arguments, so two st.button('Delete') in a loop collide. Give each a unique key: st.button('Delete', key=f'del_{item.id}'). Keys also let you read a widget's value from st.session_state[key]. Use stable keys (ids, not list positions), or state jumps to the wrong row when the list changes.
