delete
Delete volume, pool or job.
Synopsis
delete [yes] [catalog=<catalog>]
delete volume[=<volume>] [yes] [catalog=<catalog>] [pool=<pool>]
delete pool[=<pool>] [yes] [catalog=<catalog>]
delete jobid=<jobid>[,...] [yes] [catalog=<catalog>]
delete storage[=<storage>] [yes] [catalog=<catalog>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Deletes catalog records of volumes, pools, jobs or storages; asks unless yes is given.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
yes | keyword | Do not ask. | |||
catalog= | resource | from .catalogs | Catalog name. |
These arguments apply to every subcommand as well.
Subcommands
delete volume
A volume record.
Deletes a volume and every job stored on it from the catalog. The data on the medium is untouched, but it can no longer be selected for restore. Without a name the pool and volume are selected in a dialogue; pool= sets the pool for this selection. The Director asks for confirmation unless yes is given; the action cannot be undone.
Onesimus deviation: a volume holding jobs of the latest Full chain of a client and FileSet is never deleted, not even with yes.
delete volume[=<volume>] [yes] [catalog=<catalog>] [pool=<pool>]
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
volume= | resource | from .media | value optional | Volume name. | |
pool= | resource | from .pools | Pool of the volumes to select. |
Also accepts the arguments of delete: yes, catalog.
Delete a volume without asking:
delete volume=Full-0001 yes
Choose the volume to delete from pool Scratch:
delete volume pool=Scratch
delete pool
A pool record.
Deletes a Pool record from the catalog after confirmation; without a name the pool is chosen from a list. Onesimus deviation: deleting pools is not implemented yet, and after yes the Director answers delete pool: not supported.
delete pool[=<pool>] [yes] [catalog=<catalog>]
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
pool= | resource | from .pools | value optional | Pool name. |
Also accepts the arguments of delete: yes, catalog.
Ask to delete the Scratch pool record:
delete pool=Scratch
delete jobid
Job records (list or ranges).
Deletes jobs together with their file and JobMedia records from the catalog. The value may be a comma-separated list with ranges such as 507-509,511; a range of more than 25 JobIds requires confirmation. Without a value the Director asks for the JobId. This is also the way to remove a single job of a protected latest Full chain.
delete jobid=<jobid>[,...] [yes] [catalog=<catalog>]
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
jobid= | string | list | Job IDs. |
Also accepts the arguments of delete: yes, catalog.
Delete one job record:
delete jobid=14
Delete two job records:
delete jobid=600,602
delete storage
A storage record.
Deletes an orphaned Storage record from the catalog, one that no longer exists in the configuration. A storage still configured is refused; remove it from the configuration first. Without a value the Director asks for the name.
delete storage[=<storage>] [yes] [catalog=<catalog>]
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
storage= | resource | from .storages | value optional | Storage name. | |
storage= | resource | from .storages | Storage name. |
Also accepts the arguments of delete: yes, catalog.
Remove the catalog record of a removed storage:
delete storage=OldTape
Examples
Choose what to delete from the menu:
delete
Delete four job records:
delete jobid=507-509,511