delete

open fun delete(uri: Uri, selection: String, selectionArgs: Array<String>): Int

Implement this to handle requests to delete one or more rows.

Return

The number of rows affected.

Parameters

uri

The full URI to query, including a row ID (if a specific record is requested).

selection

An optional restriction to apply to rows when deleting.

selectionArgs

You may include ?s in selection, which will be replaced by the values from selectionArgs, in order that they appear in the selection. The values will be bound as Strings.

Throws

android.database.SQLException