delete all resources.