bitsadmin cancel
Removes the job from the transfer queue and deletes all temporary files associated with the job. Windows commands reference
On Windows
Windows
bitsadmin /cancel <job>
To remove the myDownloadJob job from the transfer queue
bitsadmin /cancel myDownloadJobIdentifyjobThe job's display name or GUID.