Made changes for the two DELETE calls as well