SQLiteDatabase.Delete(String, String, String[]) 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.
Convenience method for deleting rows in the database.
[Android.Runtime.Register("delete", "(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I", "GetDelete_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Handler")]
public virtual int Delete (string? table, string? whereClause, string[]? whereArgs);
[<Android.Runtime.Register("delete", "(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I", "GetDelete_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Handler")>]
abstract member Delete : string * string * string[] -> int
override this.Delete : string * string * string[] -> int
Parameters
- table
- String
the table to delete from
- whereClause
- String
the optional WHERE clause to apply when deleting. Passing null will delete all rows.
- whereArgs
- String[]
You may include ?s in the where clause, which will be replaced by the values from whereArgs. The values will be bound as Strings.
Returns
the number of rows affected if a whereClause is passed in, 0 otherwise. To remove all rows and get a count pass "1" as the whereClause.
- Attributes
Remarks
Convenience method for deleting rows in the database.
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.