Community articleDeleting wikis
Added by IBM contributorIBM | Edited by IBM contributorLDD Webmaster 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, use the HTTP DELETE method.



To delete a wiki, use the HTTP DELETE method and the following steps.

     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.

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

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}/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.
Name Type Optional Description
X-Update-Nonce
string No A single-use cryptographic key used for the delete.
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