I have already deleted the .py but in the configuration the file still shows in the run tab in PyCharm.
I have already deleted the .py but in the configuration the file still shows in the run tab in PyCharm.
To remove a "Run/Debug Configuration" go to Run > Edit Configurations select the configuration you want and click the - minus sign, show in the picture:
Reference to the PyCharm documentation - "Create a run/debug configuration".
Got to "Edit configurations", and select the configuration you want to remove. Then on top you see + - ... . The - key will delete the selected configuration.
The interface style of JetBrain is not so obvious for many people: it uses the macos paradigm and not the Microsoft paradigm. But when you get used on it, you will find also some advantages (being powerful and compact is one).