# Discard changes to an unsaved file

**URL:** <https://forum.defold.com/t/discard-changes-to-an-unsaved-file/74129>\
**Category:** Questions\
**Created:** [September 19, 2023, 1:53pm UTC](https://forum.defold.com/t/discard-changes-to-an-unsaved-file/74129 "2023-09-19T13:53:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![parsa](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/parsa/32/33260_2.png) [@parsa](https://forum.defold.com/u/parsa)\
**Post date:** [September 19, 2023, 1:53pm UTC](https://forum.defold.com/t/discard-changes-to-an-unsaved-file/74129/1 "2023-09-19T13:53:38Z")

</div>

Hi,  
I opened a file in defold and made some changes and didn’t save it (It’s still open).  
Now I want to discard all the changes I have made and go back to my last saved file.  
when I close the file within defold and reopen it again from defold file manager, it shows the edited and unsaved version of the file (although there is a star in the file name which tells that I haven’t saved the file yet), but I want to open my prechange version of my file without closing and reopening the whole defold program.

 ![image](https://forum-defold.b-cdn.net/uploads/default/original/3X/0/7/07c1d0653d21b203ee6666659c52c172754343c7.png)  
for example this the input\_binding file that I haven’t saved yet.  
I know that if I close defold without saving and open my project again it will open the last saved version, but i don’t want to close the whole program and I only want to reverse my changes in this specific file. And I don’t want to ctrl+Z all the way back.  
Any suggestions?  
Thanks 😀
