Clear a Soup
To remove all entries from a soup, call the soup clearing
method.
Hybrid Apps
In hybrid apps,
call:
The
success callback supports a single parameter that contains the soup name. For
example:
1navigator.smartstore.clearSoup(soupName, successCallback, errorCallback)1function(soupName) { alert("Soup " + soupName + " was successfully emptied."); }Android Apps
In Android apps,
call:
1public void clearSoup ( String soupName )iOS Apps
Objective-C:
1- (void)clearSoup:(NSString*)soupName;Swift:
Example:
1func clearSoup(soupName:) -> Void1store.clearSoup(soupName: soupName)