Here's source comment for this method:
Note that on Android, the application lifecycle does not include VM termination, so calling this method will not ensure that files are deleted. Instead, you should use the most appropriate out of:
* Use a {@code finally} clause to manually invoke {@link #delete}.
* Maintain your own set of files to delete, and process it at an appropriate point
in your application's lifecycle.
* Use the Unix trick of deleting the file as soon as all readers and writers have
opened it. No new readers/writers will be able to access the file, but all existing
ones will still have access until the last one closes the file.
Can anyone explain to me what is the "Unix trick" mentioned in it and how to use it?