Skip to main content

Table of Contents

Thread-Clear method


Only available versions of this content are shown in the dropdown

Use this method to clear the Thread pages for your current session, except for any pages specified in the KeepPages parameter.


The Thread-Clear method has a single fixed parameter and an array parameter.

Parameter Description
EmptyTaskLists Optional. To clear the three activity lists (Activity, Worklist, and Current), set this parameter to Y. If blank, the lists are not cleared.
KeepPages Optional. Enter any page names to retain.


If the EmptyTaskLists parameter is selected, all three activity lists are cleared.

Thread pages are deleted, except the pxThread page and those pages listed explicitly in the second parameter array.

After this method deletes the pages, it continues with the next activity step.

Checking the method status

This method updates the pxMethodStatus property only if it fails. See How to test method results using a transition.

Methods and instructions by function

Suggest Edit
Did you find this content helpful?

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us