Deleting wikis
Added by IBM contributorIBM | Edited by IBM contributorPaul Bastide on December 21, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To delete a wiki, use the HTTP DELETE method.

1. Generate a unique nonce key by executing /wikis/{auth}/api/nonce using GET

2. Take the value generated and use it for the Header X-Update-Nonce.

3. Execute the DELETE.

Only the owner of a wiki can delete it. Deleted wikis cannot be restored.

Input
Method URI Description
DELETE /wikis/{auth}/api/wiki/{wiki-label}/entry Determine the resource URI in either of the following ways:
The value of the href attribute of the <link rel="edit"> or <link rel="self"> elements in the wiki definition Atom entry of the wiki, which is available from the available wikis collection or public wikis feed.
Name Type Optional Description
wiki-label
string No The value of the <td:label> element in the wiki definition Atom entry document.
The label is also the Community Uuid
auth
enumerated No The authorization protocol being used by your application to access Connections Cloud.
Authorized values:
  • basic
  • oauth
Name Type Optional Description
X-Update-Nonce
string No A single-use cryptographic key used for the delete.
Authorization
enumerated No The authentication mechanism selected by your application to access the API.
Basic is the Base64 encoding of the IBM Connections Cloud username and password: Base64(username:password). For example, Base64(twatson@us.ibm.com:password).
Bearer is the oauth 2.0 access token that is generated when the user grants your application access to IBM Connections Cloud services.
See the reference topic "OAuth 2.0 APIs for web server flow" for more information.
Authorized values:
  • bearer
  • basic
Output
Code Description
204
Indicates that the wiki definition was successfully deleted (and no content is returned)
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
404
Indicates that the wiki definition was not found