A C++ port of CrearYBorrar