Package org.h2.tools
Class DeleteDbFiles
java.lang.Object
org.h2.util.Tool
org.h2.tools.DeleteDbFiles
Deletes all files belonging to a database.
The database must be closed before calling this tool.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Deletes the database files.static void
Options are case sensitive.private static void
private void
Deletes the database files.void
Run the tool with the given output stream and arguments.Methods inherited from class org.h2.util.Tool
isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOption
-
Constructor Details
-
DeleteDbFiles
public DeleteDbFiles()
-
-
Method Details
-
main
Options are case sensitive.Supported options [-help] or [-?] Print the list of options [-dir <dir>] The directory (default: .) [-db <database>] The database name [-quiet] Do not print progress information - Parameters:
args
- the command line arguments- Throws:
SQLException
- on failure
-
runTool
Description copied from class:Tool
Run the tool with the given output stream and arguments.- Specified by:
runTool
in classTool
- Parameters:
args
- the argument list- Throws:
SQLException
- on failure
-
execute
Deletes the database files.- Parameters:
dir
- the directorydb
- the database name (null for all databases)quiet
- don't print progress information
-
process
Deletes the database files.- Parameters:
dir
- the directorydb
- the database name (null for all databases)quiet
- don't print progress information
-
process
-