Start a new topic
Answered

Destroy Collection problem in data store

I tried to delete all data , but still keep there. how can I do?

Best Answer
Bharat,

Check this out:

POST /rpc/kid_-xxxxx/remove-collection

Authorization: master auth
X-Kinvey-API-Version: 3
X-Kinvey-Delete-Entire-Collection: true

{"collectionName”:”your_collection"}

================

Here is the response received on success:

HTTP/1.1 200 SUCCESS
{
  "count": 1
}

Hopefully this helps!

Thanks,
Pranav
Kinvey Support

 


Hey @Linda86413656‌, Are you deleting via the console or via command line? Any error messages?
I have tried to delete the collection which i have created ago but its not deleted.
Would you please help me for the same.

POST /appdata/kid_bJHTqpoZMW/remove-collection

Authorization: Basic MASTER_AUTHORIZATION
X-Kinvey-API-Version: 2
X-Kinvey-Delete-Entire-Collection: true

{"collectionName":"PaymentHistory"}


================

HTTP/1.1 201 SUCCESS
Wed May 04 2016 15:20:54 GMT+0530 (India Standard Time)

Content-Type: application/json
Location: https://baas.kinvey.com/appdata/kid_bJHTqpoZMW/remove-collection/5729c5fcbc6e1d187c241a51
X-Kinvey-API-Version: 2
X-Kinvey-Request-Id: 75b227c144c74e9f9a9717ee37c04387
X-Powered-By: Express

{
  "collectionName": "PaymentHistory",
  "_acl": {
  "creator": "kid_bJHTqpoZMW"
  },
  "_kmd": {
  "lmt": "2016-05-04T09:50:52.699Z",
  "ect": "2016-05-04T09:50:52.699Z"
  },
  "_id": "5729c5fcbc6e1d187c241a51"
}

 

Answer
Bharat,

Check this out:

POST /rpc/kid_-xxxxx/remove-collection

Authorization: master auth
X-Kinvey-API-Version: 3
X-Kinvey-Delete-Entire-Collection: true

{"collectionName”:”your_collection"}

================

Here is the response received on success:

HTTP/1.1 200 SUCCESS
{
  "count": 1
}

Hopefully this helps!

Thanks,
Pranav
Kinvey Support

 

Login or Signup to post a comment