Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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)