Delete funcion arreglada