DeleteAll method: PSMessages collection
Syntax
DeleteAll()
Description
The DeleteAll method deletes all the PSMessage objects in the PSMessages collection executing the method. You should use this property after you have processed all the errors in the collection. This method also resets the status of ErrorPending to False.
Returns
This method returns a Boolean value: True if all PSMessages in the collection were successfully deleted, False otherwise.
Related Topics