Clear a Soup

To remove all entries from a soup, call the soup clearing method.

Hybrid Apps

In hybrid apps, call:
1navigator.smartstore.clearSoup(soupName, successCallback, errorCallback)
The success callback supports a single parameter that contains the soup name. For example:
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:
1func clearSoup(soupName:) -> Void
Example:
1store.clearSoup(soupName: soupName)