Context.DeleteSharedPreferences(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.
Delete an existing shared preferences file.
[Android.Runtime.Register("deleteSharedPreferences", "(Ljava/lang/String;)Z", "GetDeleteSharedPreferences_Ljava_lang_String_Handler", ApiSince=24)]
public abstract bool DeleteSharedPreferences (string? name);
[<Android.Runtime.Register("deleteSharedPreferences", "(Ljava/lang/String;)Z", "GetDeleteSharedPreferences_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member DeleteSharedPreferences : string -> bool
Parameters
- name
- String
The name (unique in the application package) of the shared preferences file.
Returns
true
if the shared preferences file was successfully
deleted; else false
.
- Attributes
Remarks
Delete an existing shared preferences file.
Java documentation for android.content.Context.deleteSharedPreferences(java.lang.String)
.
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.