clean resource dir