Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a management command to delete a Project and its related work directories #65

Closed
tdruez opened this issue Dec 8, 2020 · 0 comments
Assignees
Milestone

Comments

@tdruez
Copy link
Contributor

tdruez commented Dec 8, 2020

import shutil
from scanpipe.models import Project

project = Project.objects.get(name="PROJECT_NAME")
shutil.rmtree(project.work_directory)
project.delete()
@tdruez tdruez added this to the 1.1 milestone Dec 8, 2020
@tdruez tdruez self-assigned this Dec 8, 2020
tdruez added a commit that referenced this issue Dec 23, 2020
…ectories #65

Signed-off-by: Thomas Druez <tdruez@nexb.com>
@tdruez tdruez closed this as completed Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant