Terminating a Download
An ongoing or suspended file download can be manually terminated. Once terminated, you will not be able to resume the download.
The following sample code shows how to terminate a download.
terminate() method to terminate a download. An error will be returned if you attempt to terminate a finished download.