Delete Database
AI-generatedSummary
Delete a specified SQLite database file from the workspace directory.
Inputs
- Database Name (required) — Name of the SQLite database file to delete. The .db extension is appended if omitted.
- Ignore Missing — If true, suppresses errors when the specified database does not exist, allowing the operation to succeed silently.
Output shape
A single output item indicating the deletion result.
The output JSON contains the database name, the full resolved path, and a boolean 'deleted' flag indicating if the file was removed. If the database does not exist and 'Ignore Missing' is false, an error is thrown; if 'Ignore Missing' is true, 'deleted' is false and no error is thrown.
Examples
Example 1: Database is successfully deleted.
Provide an existing database name and set 'Ignore Missing' to false or omit it (default false). Output indicates 'deleted': true.
Example 2: Database does not exist but 'Ignore Missing' is true.
Provide a non-existing database name and set 'Ignore Missing' to true. No error is thrown. Output indicates 'deleted': false.