Changed new delete method

New delete method now accepts a new parameter to decode instead of
accepting the data from the body.