clean up resource dir