clearup patmgr template files