Skip to main content

Deleting a File

Deleting a File

The DeleteDoc method deletes the file specified in the URL. The DeleteDoc method has the same URL as the GetDoc method except that you use the HTTP Delete method instead of the Get Method. To delete xyz.mac, make an HTTP DELETE request with the URL:

https://devsys:52773/api/atelier/v1/INVENTORY/doc/xyz.mac

The Delete method returns the following JSON message:

{
  "status": {
    "errors": [],
    "summary": ""
  },
  "console": [],
  "result": {
    "name": "xyz.mac",
    "db": "INVENTORYR",
    "ts": "",
    "cat": "RTN",
    "status": "",
    "enc": false,
    "flags": 0,
    "content": []
  }
}

When a file has been deleted, the timestamp, ts, has a value of "" (empty string).

FeedbackOpens in a new tab