Delete the anonymous namespaces and reset the counter to 0
public static function reset() { while (self::$anonymousNamespaceCount > 0) { self::delete('ns' . (self::$anonymousNamespaceCount - 1)); self::$anonymousNamespaceCount--; } }