updated delete to return paths and _ids