JSDO properties, methods, and events reference : deleteLocal( ) method
  

deleteLocal( ) method

Clears out all data and changes stored in a specified local storage area, and removes the cleared storage area.
Return type: undefined
Applies to: progress.data.JSDO class

Syntax

deleteLocal ( [ storage-name ] )
storage-name
The name of the local storage area to be removed. If storage-name is not specified, blank, or null, the name of the default storage area is used. The name of this default area is jsdo_serviceName_resourceName, where serviceName is the name of the Data Object Service that supports the JSDO instance, and resourceName is the name of the resource (table, dataset, etc.) for which the JSDO instance is created.
If this method encounters any errors, it leaves the specified storage area unchanged and throws an exception.

Example

The following code fragment clears out all the data currently stored in the default storage area and removes the storage area:
dataSet = new progress.data.JSDO( 'dsStaticData' );
dataSet.fill();
dataSet.saveLocal();
.
.
.
dataSet.deleteLocal();

See also:

acceptChanges( ) method, rejectChanges( ) method, saveChanges( ) method, saveLocal( ) method