Added back tm_json_write_delete function call in delete