Deleting a file means that the operating system removes the pointer then it marks the sector which contains the file’s data. In the point of view of the system, the file is no longer there and it frees up your space.