logic works for delete body