# Supprimer la configuration en mode rommon

Si vous voulez supprimer la configuration d'un switch mais que vous n'avez pas le mot de passe, il faut alors démarrer le switch en mode rommon.

Si le switch est sous tension, débranchez-le. Appuyez sur le bouton "Mode", et maintenez cet appui tout en mettant sous tension le switch. Restez appuyé jusqu'à ce que le voyant "LED STAT" devienne vert fixe puis vert clignotant.

Vous devriez arriver sur ce prompt :

[![cisco-rommon-1.png](http://wikidunn.ddns.net/uploads/images/gallery/2024-03/scaled-1680-/cetS2WXB0lV70NAq-cisco-rommon-1.png)](http://wikidunn.ddns.net/uploads/images/gallery/2024-03/cetS2WXB0lV70NAq-cisco-rommon-1.png)

##### Etape 1 : Initialiser la flash et le boot

```
switch: flash_init
```

```
switch: boot
```

##### Etape 2 : Lister les fichiers

```
switch: dir flash:
```

##### Etape 3 : Supprimer le fichier de configuration

```
switch: delete flash:config.text
Are you sure you want to delete "flash:config.txt" (y/n) ?y
```

##### Etape 4 : Redémarrer le switch

```
switch: reset
```

[![cisco-rommon-2.png](http://wikidunn.ddns.net/uploads/images/gallery/2024-03/scaled-1680-/mhnqgEhIiup3fRtd-cisco-rommon-2.png)](http://wikidunn.ddns.net/uploads/images/gallery/2024-03/mhnqgEhIiup3fRtd-cisco-rommon-2.png)