Destroy resource.