Mercurial > hg > LGDataverses
comparison scripts/api/data-deposit/delete-dataset @ 10:a50cf11e5178
Rewrite LGDataverse completely upgrading to dataverse4.0
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 08 Sep 2015 17:00:21 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:5926d6419569 | 10:a50cf11e5178 |
---|---|
1 #!/bin/bash -x | |
2 USERNAME=spruce | |
3 PASSWORD=spruce | |
4 DVN_SERVER=localhost:8181 | |
5 if [ -z "$1" ]; then | |
6 GLOBAL_ID=`scripts/api/data-deposit/list-datasets | xpath '//id/text()' | cut -d'/' -f11,12,13` | |
7 else | |
8 GLOBAL_ID=$1 | |
9 #GLOBAL_ID=doi:10.5072/FK2/17 | |
10 fi | |
11 #curl --insecure -X DELETE https://$DVN_SERVER/api/datasets/$DATABASE_ID?key=$USERNAME | |
12 curl --insecure -i -X DELETE -u $USERNAME:$PASSWORD https://$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/edit/study/$GLOBAL_ID | |
13 #| xmllint -format - |