Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat small program cloud development API database delete collection


May 20, 2021 WeChat Mini Program Development Document



databaseCollectionDelete

This interface should be called on the server side, as detailed in the service side API.

Delete the collection

The request address

POST https://api.weixin.qq.com/tcb/databasecollectiondelete?access_token=ACCESS_TOKEN

Request parameters

Property Type The default Required Description
access_token string Is The interface calls the credentials
Env string Is Cloud environment ID
collection_name string Is The name of the collection

Returns a value

Object

The returned JSON packet

Property Type Description
errcode number error code
errmsg string Error message

Errcode's legitimate value

value illustrate Minimum version
0 Request success
-1 system error
-1000 system error
40014 AccessToken is not legal
40097 Request parameter error
40101 Missing required parameters
41001 ACCESSTOKEN
42001 AccessToken expired
43002 HTTP METHOD Error
44002 Post body is empty
47001 POST BODY Format Error
85088 The APP has not opened the cloud development
Other error code Cloud development error code

Request data example

{
  "env":"test2-4a89da",
  "collection_name": "test_delete_collection"
}

Return an example of the data

{
    "errcode": 0,
    "errmsg": "ok",
}