DeleteDocument
Description
This function deletes the document with the provided document ID from Docstoc’s repository. Note that, although the reason is not visible on the site, it is still important to provide a reason for deletion, in case of mistakes, etc.
REST - HTTP GET
http://rest.docstoc.com/document/DeleteDocument?Key=string&Ticket=string&DocID=int&DeleteReason=string
SOAP 1.2
POST /service.asmx HTTP/1.1
Host: soap.docstoc.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<DeleteDocument xmlns="http://ws.docstoc.com/">
<Key>string</Key>
<Ticket>string</Ticket>
<DocID>int</DocID>
<DeleteReason>string</DeleteReason>
</DeleteDocument>
</soap12:Body>
</soap12:Envelope>
Expand
Parameters
| Name |
Data Type |
Description |
Optional |
| Key |
String |
Application Key |
|
| Ticket |
String |
The ticket provided after calling AuthenticateUser |
|
| DocID |
Integer |
Id of the document to delete |
|
| DeleteReason |
String |
Why is the document being deleted. |
|
Response
| Condition |
Data Type |
Description |
| Success |
String |
Empty string |
| Failure |
Web Exception |
See error codes section
|
Error Codes
| Type |
Value |
Description |
| Web Exception |
400 |
The ticket is null |
| Web Exception |
400 |
DocID is invalid |
| Web Exception |
401 |
The ticket is invalid |
| Web Exception |
401 |
User not authorized to delete document |
See Also