---
title: Delete
slug: delete
docTags: 
createdAt: 2022-01-05T08:54:12.000Z
---

Link Enterprise provides a web service endpoint that will allow you to delete a file.

:::ApiMethodV2
```json
{
  "tab": "request",
  "url": "https://localhost:82/scrud/delete",
  "name": "Delete a file.",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "ids",
        "type": "string",
        "description": "one drive id of the document"
      },
      {
        "kind": "required",
        "name": "cmsName",
        "type": "string",
        "description": "Name of the sharepoint system configured in Link Enterprise."
      },
      {
        "kind": "required",
        "name": "selectedCMS",
        "type": "string",
        "description": "Value should always be set to \"sp\" to let Link Enterprise know which configured content system to search."
      },
      {
        "name": "repository",
        "kind": "required",
        "type": "string",
        "description": "Sharepoint repository Id. It consists of sharepoint domain name and root site name separated with \"/sites/\" or \":/teams/\"",
        "children": []
      },
      {
        "name": "location",
        "kind": "required",
        "type": "string",
        "description": "Sharepoint Document Library location (including any sub site present). Each field is separated with \"/\".",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "ZbT9xDTdXEpCuzbNprahQ",
        "code": "\"completed\"",
        "language": "200"
      },
      {
        "id": "b89YgQOhw-hoyU4iXf1ZM",
        "code": "",
        "language": "500"
      }
    ],
    "selectedLanguageId": "ZbT9xDTdXEpCuzbNprahQ"
  },
  "examples": {
    "languages": [
      {
        "id": "C4pSfZHstrxmG8KSy6hS0",
        "code": "{\n\n    \"cmsName\": \"insertProductionSystemName (located in Link Enterprise gui)\",\n    \"selectedCMS\": \"sp\",\n       \"ids\":\"unique sharepoint id specfic to folder/id\",\n   \"location\":\"/<subsite>/<documentLibraray>\",\n   \"repository\":\"<domainName>/sites/<siteName>\",\n\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "C4pSfZHstrxmG8KSy6hS0"
  },
  "description": "Delete a File ",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "delete-a-file",
  "legacyHash": "RZpY6k9dlIB2WTVx-E1YN"
}
```
:::



