implemented delete method from json