added docs for purge and clear