Add support for removing resources.