Cleaning useless resource