This article outlines the required steps to safely handle, reconfigure, or repurpose a switch after it has been removed from a Virtual Chassis stack.
-Residual Virtual Chassis configuration causing abnormal behavior
-Loss of management connectivity
-Incorrect device role or identification
-Interface and traffic forwarding issues
-VC-related alarms or log messages persisting after removal
When removing a switch that was part of preprovisioned configuration in a virtual chassis or stack of switches, it is important to zeroize the device to make sure device erases all types of configs related to virtual chassis, also you could perform a format install which is a deeper cleansen of this config.
The procedures can be found in known articles:
https://supportportal.juniper.net/s/article/EX-How-to-format-install-EX2300s-and-EX3400s-via-USB for ex2300 and ex3400 , mostly EX devices
https://supportportal.juniper.net/s/article/EX4400-Format-Install-Procedure EX4400
https://supportportal.juniper.net/s/article/EX-QFX-Procedure-to-format-install-QFX5K-device-using-a-USB qfx and ex4600
Please also consider best practices and procedures that will help you remove , add , or replace a virtual chassis member , by following next ,
https://supportportal.juniper.net/s/article/Manage-a-Virtual-Chassis-Using-Mist-Add-Delete-Replace-and-Modify-Members