Skip to content

[PyCharm] How to Restore the deleted files

When we using PyCharm IDE to develop a project, sometimes we may delete some files by mistake. Maybe we will feel nervous, but in fact we can restore the deleted files.


How to Restore

Suppose we have a developed project which contains some files.


We delete test.py now.


The test.py file is missing in the project directory.


We can not find from the trash.


We need to right-click on the folder where the file was deleted and select Local History -> Show History.


We can see the folder change history.


We can also see the test.py we just deleted.


Select Revert Selection.

I hope everyone can successfully restore the files. Although there is no guarantee that all IDEs have this feature, at least I think the IDEs developed by JetBrains have them.

1 thought on “[PyCharm] How to Restore the deleted files”

Leave a Reply