updated delete function with path:'/'