if you have a cisco 2950 switch that you purchase from someone or you are now the administrator and you have to manage the switch but the previous person didnt tell you the configuration or you just simply want to reset the configuration on the switch its very easy.

all you have to do is send this command:
setup


afterward, you will be prompted and follow the steps:
switchname#setup

--- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]:


enter yes