There are many types of wipes that one can do
Standard Delete: this just removes the entry from the file system, but the data still exists on the disk at the sector level
Single Pass: This just 0 fills the sectors
DOD 3 Pass: This does A character, its complement, another pattern
Schneier's Algorithm 7 Pass: This does All ones, all zeros, pseudo-random sequence five times
Gutmann's Algorithm 35 Pass: This does various sequences and patterns, This is OVERKILL.
So if you dont wipe the sector, you can recover the data, even after several formats.
This site explains most techniques used
https://www.lifewire.com/data-sanitization-methods-2626133#dod-522022-m
In a nutshell, all that really happens is the location for that file in the filesystem is removed.
The file is still on the disk the space is just marked as free.
Think of it like a book.
The contents page has a list of all things in the book and what page.
The OS tells the file system those sectors are now "FREE", but if you have a program that can read each page of the book, you will find the data there.
The only caveat is if you have some sort of "Secure Delete" program that writes over the sectors as well.
Image Example
Lets say you want to delete "Summer"
View attachment 1001640
Summer has been deleted to the OS, but the summer still exists in the book and you can only see data that is listed in the contents it looks like the file is deleted, but it still exists, using a program that will read each sector can allow you to recover that file.
View attachment 1001643