Share via


DownloadManager.Remove(Int64[]) Method

Definition

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.

Java documentation for android.app.DownloadManager.remove(long...).

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.

Applies to