daytona icon indicating copy to clipboard operation
daytona copied to clipboard

daytona prune

Open idagelic opened this issue 11 months ago • 0 comments

Daytona prune command

Description

daytona prune clears all the data associated with Daytona from the machine:

  • deletes all workspaces
  • deletes the daytona ssh config file and unlinks it from the main ssh config file
  • deletes the daytona autocomplete file and unlinks it from the "run command" (.rc) file
  • deletes the daytona config directory after prompting the user to turn off the Daytona Server

When ran in a non-default profile, it prompts the user to switch to the default profile or abort

Confirmation prompt for pruning implemented (Y/n)

Type of Change

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature
  • [x] Breaking change (fix or feature that would cause existing functionality to not work as expected) - Windows "quick start" users will need to reinstall Daytona for prune to work - because the daytona binary is no longer stored in the main config folder
  • [x] This change requires a documentation update

Checklist

  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings

Related Issue(s)

This PR addresses issue #200

idagelic avatar Mar 18 '24 17:03 idagelic