Fix purge handling and update doc