Skip to content

[API] Add a destroy app command #163

@mirkoCrobu

Description

@mirkoCrobu

Describe the request

We could add a new app destroy command (or a similar name) for stopping and removing all the data of an app.
In particular, we should do a docker-compose down and remove the .cache.

We should also consider adding a destroyed (or a better name) that is the default state of an app if it has not been run yet.
With this additional state, we would then be able to always return a state when listing the apps (right now apps and examples that have not been run, will show up as with no state).

Check the related issue implemented for the CLI Command: #129

Describe the current behavior

there is no API command for this task yet.
check the relative implementation about the CLI command: #129

Arduino App CLI version

0.8.0

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest version
  • My request contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions