implemented DeleteApi