Removes unused resource