Deleting wiki pages
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 page, use the HTTP DELETE method.
Only the owner of a wiki page can delete it. Deleted wiki pages cannot be restored.

Steps to get the Nonce Key

1. Generate a unique nonce key by executing /wikis/basic/api/nonce using GET

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

3. Execute the DELETE

Input
Method URI Description
DELETE /wikis/{auth}/api/wiki/{wiki-label}/page/{page-label}/entry Determine the resource URI in either of the following ways: The web address in the href attribute of the rel=edit link element for each wiki page Atom entry, which are provided in the wiki pages collection. You can construct the URI using the following syntax: /{auth}/api/wiki/{wiki-label}/page/{page-label}/entry where {wiki-label} is the value of the <td:label> element in the wiki definition Atom entry document and {page-label} is the value of the <td:label> element in the wiki page Atom document.
Name Type Optional Description
page-label
string No is the value of the <td:label> element in the wiki page Atom document.
wiki-label
string No is 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
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
Content has been deleted successfully.
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
404
Page not found.