DownloadManager.Remove(Int64[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Cancel downloads and remove them from the download manager.
[Android.Runtime.Register("remove", "([J)I", "GetRemove_arrayJHandler")]
public virtual int Remove(params long[]? ids);
[<Android.Runtime.Register("remove", "([J)I", "GetRemove_arrayJHandler")>]
abstract member Remove : int64[] -> int
override this.Remove : int64[] -> int
Parameters
- ids
- Int64[]
the IDs of the downloads to remove
Returns
the number of downloads actually removed
- Attributes
Remarks
Cancel downloads and remove them from the download manager. Each download will be stopped if it was running, and it will no longer be accessible through the download manager. If there is a downloaded file, partial or complete, it is deleted.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-03 UTC.
Android reference for android.app.DownloadManager.remove.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.