# DESS - komplett zurück setzen

Die Tabellen kannst du am besten mit **DROP TABLE** direkt in SQL leeren. Dann fangen die Auto Inkrement IDs mit 1 an und die Tabellen sind komplett leer

Drop diese Tabellen:

- **tbl\_notification**
- **tbl\_on\_call**
- **tbl\_time\_booking**
- **tbl\_time\_booking\_change\_log**
- **tbl\_time\_booking\_day**
- **tbl\_time\_booking\_hour**
- **tbl\_time\_booking\_work**
- **tbl\_log**
- **tbl\_mdl\_entry**

**Wenn die Korrekturdaten behalten werden sollen:**

MDL sollen bleiben:

```SQL
DELETE FROM tbl_mdl_correction WHERE mdl_correction_booking_id <> 0
```

Abwesenheitskorrekturen (Urlaub, ZA) sollen bleiben:

```SQL
DELETE FROM tbl_time_absence WHERE absence_booking_id <> 0
```

**sollen die MDL, Urlaub, ZA auch zurück gesetzt werden:**

Drop Tabellen:

- **tbl\_mdl\_correction**
- **tbl\_time\_absence**

<p class="callout success">Abschließend bitte **IMMER** die Anwendung neu starten (Restart nodejs App in Plesk).</p>