Update the output format for various asset and folder commands to ensure JSON Lines are emitted on stdout, providing a consistent structure across commands. Enhance error handling to ensure that unknown ids or invalid inputs fail the entire command, improving user feedback and command reliability. This change streamlines the user experience and aligns with the fail-fast convention for batch commands.
20 lines
321 B
Markdown
20 lines
321 B
Markdown
# `dapi node rm <ids...>`
|
|
|
|
Deletes one or more entities and all their descendants. Alias: `remove`.
|
|
|
|
## Input
|
|
|
|
- `<ids...>`: one or more entity ids (required)
|
|
|
|
## Output
|
|
|
|
JSON Lines on stdout, one per deleted entity:
|
|
|
|
```ts
|
|
{ id: number }
|
|
```
|
|
|
|
## Errors
|
|
|
|
An unknown id fails the whole command before anything is deleted.
|