I let my user select the directory, where to store the file output of my app, using the ACTION_OPEN_DOCUMENT_TREE Intent. When the user has selected a directory, I am persisting the uri permissions (contentResolver.takePersistableUriPermission), so I can use this directory without further bothering the user.
The user is later on allowed to change that directory, so that the location, where my app is storing the files changes. Should I release the uri permissions for the previously used directory? What are the consequences of not caring about that?