Skip to content

Conversation

@c-w
Copy link
Member

@c-w c-w commented May 13, 2019

This change adds a button the the dataset page which lets an admin delete documents from a project. This is useful to for example delete test data or clean up the dataset.

The button is implemented via a simple request to the existing delete endpoint in the documents API. Given that the dataset page is server-side rendered by Django, when the request is successful, we reload the page to reflect the new state of the dataset. Note that for simplicity and speed, the button does not prompt the user for confirmation.

Screenshot showing new document delete button

Resolves #21

@Hironsan Hironsan merged commit adb8035 into doccano:master May 22, 2019
@c-w c-w deleted the enhancement/delete-document branch May 23, 2019 13:25
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

Successfully merging this pull request may close these issues.

Feature Request: Delete this document

2 participants