JavaScript

{dialog.object}idbClear Method

Syntax

{dialog.object}.idbClear([onSuccess])

Arguments

onSuccessfunction

A JavaScript function to call when the operation succeeds.

Description

Deletes all data from the IndexedDB database.

Discussion

The idbClear() method deletes all data from the IndexedDB database.

Example

if ({dialog.object}.idbAvailable()) {
    var onSuccess = function () { alert('all data has been deleted from the IndexedDB database'); };
    {dialog.object}.idbClear(onSuccess);
}

See Also