On this page
DEL GROUP
Deletes a Database Group by making it inactive; refused while a connection uses it.
Syntax
DEL GROUP <id>
Arguments
| Argument | Required | Values | Default |
|---|---|---|---|
<id> | Yes | The ID of an active Database Group that no connection uses | None |
Examples
DEL GROUP TAT;
Details
The Database Group is marked inactive, not removed; EDIT GROUP reactivates it (answer y to Active). The deletion is refused while a connection, active or inactive, still uses the Database Group.
The command asks Delete Database Group '<id>' [y/n]?; only y or yes deletes. A Database Group already inactive is reported as such. PURGE GROUP then removes it permanently.
GitHub #339 (Finding 5): DELETE GROUP is another name of the command. Before, it was not a command: the line was sent to the current connection as SQL (refused at BroadSQL>, and a Production confirmation on a Production connection). GROUP is a reserved word of SQL, so DELETE GROUP <id> is never a statement of a database. DELETE CONNECTION and DELETE ENVIRONMENT are not names of the other commands: they can be SQL (a table named CONNECTION or ENVIRONMENT, on databases where FROM is optional).
Related
- EDIT GROUP, to reactivate it
- SHOW ENVIRONMENTS, the connections that use it
- SHOW ALL GROUPS
- PURGE GROUP, to delete it for good once inactive
Last modified in release 5.6.0.
Found something wrong or unclear on this page? Tell us, with the page address.