Integration Server 10.3 | Built-In Services Reference Guide | Storage Folder | Summary of Elements in this Folder | pub.storage:deleteStore
 
pub.storage:deleteStore
WmPublic. Deletes a data store and all its contents. Any data in the data store is deleted. If the data store does not exist, the service takes no action.
Input Parameters
storeName
String Name of the data store to delete.
waitLength
String Optional. Length of time, in milliseconds, that you want to wait for this data store to become available for deletion if it is already locked by another thread. The default is the default Maximum Lock Wait value, which is specified on the watt.server.storage.lock.maxWait property. You can update this property by using the Settings > Extended Settings screen on the Integration Server Administrator.
Output Parameters
count
String Number of data store entries that were deleted. If the store does not exist, this value is 0.
Usage Notes
This service obtains an exclusive lock on the data store, but no locks on the individual entries in the data store.
If this service finds a shared lock from the same thread on the data store, the service will automatically promote the lock to an exclusive lock.
The exclusive lock prevents other threads from acquiring locks on the data store or entries within the data store during the delete operation.