delete nested main