Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Add docs on emptying a dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
timmow committed Jan 12, 2015
1 parent cdf3ed5 commit 4581171
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,16 @@ Other parameters:
## Useful tools

* Copy data from an environment to the local Backdrop database (should be run on your host machine): `cd tools && ./replicate-db.sh <youruser>@mongo-1.pp-preview`

## Emptying a dataset

To empty a dataset, get its token from stagecraft. Then run the following curl
command

```
curl -X PUT -d "[]" https://{backdrop_url}/data/<data-group>/<data-type> -H 'Authorization: Bearer <token-from-stagecraft>' -H 'Content-Type: application/json'
```




0 comments on commit 4581171

Please sign in to comment.