implemented delete restApi