Setting content lenght to 0 for delete methods