Hi, i have some saved data at user://save_data.save path.
i can reach it when using Windows, bot not at android. i dont even know where it has been stored.
When using Windows i can find it "user/appdata...../ path but not when using android.

i need to delete the file when app is closed.
So i.need to find.where is.the file, and a way to detech when app is terminated.

If you want to look at the data in the Android file system from a computer, you can use Android Studio or the adb (Android Debug Bridge) shell command. The computer has to be connected to the Android device. I use a USB cable. A wireless connection is also possible, but I haven't tried that. I don't know if you can access an app's private files using Android Studio. Here's an example of how to do it using adb.

In this example, the Android app's Unique Name is org.godotengine.mygame.

To access the app's files from your computer using adb:

adb shell
cd /data
run-as org.godotengine.mygame

Then you can use Linux shell commands on the app's files, such as ls, cd, cat and rm.

Here's a reference for adb: https://developer.android.com/studio/command-line/adb

    DaveTheCoder
    Thanks for the reply, well i did use Android Debug Bridge and debug the game (bdw i did find diffrent errors and bugs and fix them, they did not show in the editor) anyway, i did not saw the saved file path but i did follow your idea and try the delete directory at windows and it did work, after that i did use it on android and it did work too 😃

    		var dir = Directory.new()
    		dir.remove("user://save_ui.save")

    after that i had to detect when app terminated by player (with back button or use force)
    for this problem, i used a autoload script, and this is the code:

    func _ready():
    	get_tree().set_quit_on_go_back(false)
    	
    func _notification(what):
    	if what == MainLoop.NOTIFICATION_WM_GO_BACK_REQUEST:
    		var dir = Directory.new()
    		dir.remove("user://save_ui.save")
    
    
    	if what == MainLoop.NOTIFICATION_WM_QUIT_REQUEST:
    		var dir = Directory.new()
    		dir.remove("user://save_ui.save")

    but this one still have problems, some times its not delete the directory. So i need a way that block the player open the android slide-back menu, so that player only can quit from the game the button (exit button) that i asing in ui. How can i block the open android back menu when game is open ?

      newMorningKingdoM How can i block the open android back menu when game is open ?

      That might not be possible. But deleting the directory anyway might be possible with a Service or Background task. Those are discussed here, under Core topics:
      https://developer.android.com/guide

      Or maybe the directory could be deleted when the relevant state transition occurs, such as onStop.
      https://developer.android.com/reference/android/app/Activity#onStop()

      I don't know how to do that stuff using Godot, other than the notifications which you're already tried. It might require using a custom template and adding separate code.

      That site might also have some specific discussion about blocking the back button.

      Is it really essential to delete the directory? It's normal for Android apps to have persistent data that doesn't get deleted unless the app is uninstalled.