purgeTransientData(transientItemID)
Deletes the keys and data stored in a transient item.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
transientItemID | string | The ID of the transient item containing the keys and data to be deleted. | ✅ |
Usage example
In this example, consider the keys and data in the transient item to be
{Name: 'James Bond', department: {id: '007', type: 'agent'}}
.
After the purgeTransientData API is called, the transient item becomes an empty
object {}
.
PCore.getContainerUtils().purgeTransientData('app/primary_1/workarea_1/transientItem_1');
Previous topic isContainerDirty(containerItemID) Next topic APIs in the DataApiUtils module