Skip to content

Should be able to delete corpora #28

Description

@turicas

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions