implemented delete API