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

Should be able to delete corpora #28

Open
turicas opened this issue Feb 12, 2014 · 0 comments
Open

Should be able to delete corpora #28

turicas opened this issue Feb 12, 2014 · 0 comments
Milestone

Comments

@turicas
Copy link
Contributor

turicas commented Feb 12, 2014

Create a method Corpus.delete, with option on only deleting the corpus or also all documents inside it. Something like this:

def delete(self, delete_documents=False):
    if delete_documents:
        for document_url in self.documents:
            self.session.delete(document_url)
    return self.session.delete(self.url).ok
@turicas turicas added this to the 0.3.0 milestone Feb 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant