i dont understand the question if you want to delete a file use the DeleteFile(..) api.

Cheers