Converte delete method, changed put method for anon users.