fix broken apiDelete call introduced in f8172eaf75a97498972809c7ce50007921847e72