Combine deleteResource and deleteManyResources into one variadic function named deleteResources. Fixes #37682