Community articleDeleting wiki pages
Added by IBM contributorIBM on July 1, 2014
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.



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

See Authenticating requests for information about how to authenticate the request.

Input


None.

Output


None.
 

 

Input
Method URI Description
DELETE /wikis/basic/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: /basic/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
Name Type Optional Description
X-Update-Nonce
string No
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.