---
name: "dbs_empty"
section: "1p"
platform: "linux"
package: "libdbix-easy-perl"
version: "0.21-1.2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dbs_empty"
---

# dbs\_empty(1p)

Empty SQL Databases

## NAME

dbs\_empty - Empty SQL Databases

## DESCRIPTION

dbs\_empty is an utility that **completely erases** any data from a given SQL database.

## COMMAND LINE PARAMETERS

Required command line parameters are the DBI driver (`"Pg"` for Postgres or `"mysql"` for MySQL) and the database name. The third parameter is optionally and specifies the database user and/or the host where the database resides (`"racke"`, `"racke@linuxia.de"` or `"@linuxia.de"`).

## COMMAND LINE OPTIONS

### --exclude-matching-tables=REGEXP

Excludes any table matching the regular expression REGEXP from dumping.

### -t, --tables

Remove tables from database too.

## AUTHOR

Stefan Hornburg (Racke), racke@linuxia.de

## SEE ALSO

[**perl**(1)](/perl/1.md), **DBIx::Easy**(3)
