added deleteDataset($datasetId) to destroy datasets#31
added deleteDataset($datasetId) to destroy datasets#31tainguyenbui merged 1 commit intoIQSS:masterfrom
deleteDataset($datasetId) to destroy datasets#31Conversation
This new method make a request to the following address: * DELETE /api/datasets/:persistentId/destroy/?persistentId=$datasetId This Dataverse API endpoint let superusers to remove published datasets and ordinary users to remove draft/unpublished datasets as can see on the API spec docs: * https://guides.dataverse.org/en/latest/api/native-api.html#delete-published-dataset
|
@joenio Once this is merged, we would need to deploy a new version of the library, so please give me a thumbs up if you need it asap and I will take in charge of doing so |
|
@tainguyenbui thanks for your quickly feedback here, I'm going to start work on the issue #30 also, maybe it's a good idea to wait it to release a new package including this also, but I don't know how much time it takes me as I'm not much experienced with Dataverse API yet. |
No worries! you can continue adding changes to this PR. I would encourage adding something in the PR title such as |
Thanks, but I will open new contributions in new PR, this PR here is finished. BTW, I like to know about this practice of putting info on the PR title. |
Description
This new method make a request to the following address:
This Dataverse API endpoint let superusers to remove published datasets and
ordinary users to remove draft/unpublished datasets as can see on the API spec
docs:
Changes
Added new method:
deleteDataset($datasetId).Tests
deleteDataset($datasetId)passing the persistendId of the dataset on $datasetId paramChecklist
Screenshots