Adding a way to cleanup resource data.