Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

purgeTransientData(transientItemID)

Updated on July 20, 2021

Deletes the keys and data stored in a transient item.

Returns

Not applicable.

Parameters

NameTypeDescriptionRequired
transientItemIDstringThe 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');

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us