Many thanks in advance for your help and support
Kind regards
Different filesystems handle this quite differently, but it's common that deleting a file doesn't actually overwrite the contents (mostly because that would take extra time, perhaps a significant amount of extra time). In most filesystems it just involves removing a directory entry (so that the file is no longer displayed as existing), and somehow marking the disk locations where the file's contents were stored as free (so that they can be reallocated for future files).
Data recovery and undeletion can involve finding the directory entries or allocation records, or just looking for interesting data on the raw disk device without regard to its allocation structure ("carving").
The exact technical details depend a lot on your operating system and filesystem type.
https://en.wikipedia.org/wiki/File_system
But you can learn a lot with a hex editor and/or filesystem debugger, as well as the technical documentation for the filesystem type that you're using.