This function deletes a file from the wiki. You must have moderator level access to the wiki and the file must exist for this call to succeed.
file
Specifies what new file you'd like to delete. If the file doesn't exist, the function will fail with a 404. Since it is a GET parameter, it must be URI encoded.
The response will indicate the success or failure of the page deletion. Upon success, "deleted" will be set to "absolutely".
http://YOURWIKI.pbwiki.com/api/json/DeleteFile?apikey_v1=12345&file=somefile.txt
{ "v1": {
"deleted": "absolutely"
}}
Page Information
|
Wiki Information
|
Recent PBwiki Blog Posts |