clear branch resouce