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”

  1. I'm His Little One – Canada – My name is Jocelyn, I opened "I am His Little one" blog on October 30th, 2017. I am grateful to God for Him being in my life. I am married to a great man of God, and decided to make this page due to the fact that I am seriously learning so much and want everyone to read what I am reading. I hope they encourage you, bring change and sharpen you as a person, it has done so for me. I pray that this blog will teach you and edify you whether you are in the body of Christ or not. No judgement here, but there is love, there is correction, there is boldness, there is meekness, there is truth, there is the Holy Spirits leading.

    What if it’s saving to an exel file and I deleted the exel file data by accident, can I restore the data ?

Leave a ReplyCancel reply

Exit mobile version