Converted delete operation to ajax.