Fixed delete API method