I'm using NSUrlConnection and NSOutputStream to write the file. But when the file doesn't exist or there is an error while downloading I want to be able to remove the incomplete downloaded file.
Is there a operation for this? Because otherwise I get a file with 0 bytes content...