When files are deleted, they are not really wiped; it’s just that all links to that file are removed so there is no more a way to access that file normally. Usually you have some time until that information is overwriten by the system and until then you could theoretically use any kind of recovery software that does the job. In reality doing it yourself (without a special-purpose program) would be wasteful as you would have to check information bit by bit until you found what you were looking for.