Need to use CRS518-16XS-2XQ-RM as L2 switch to have port-based VLAN

How can i clear all config ? How can i be sure that entire config is erased ?
reset button from front panel is enoug ? i need to connect with winbox and start to write command directly ?