---
title: Delete
slug: XY0w-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": "id of the document"
      },
      {
        "kind": "required",
        "name": "cmsName",
        "type": "string",
        "description": "Name of the s3 system configured in Link Enterprise."
      },
      {
        "kind": "required",
        "name": "selectedCMS",
        "type": "string",
        "description": "Value should always be set to \"s3\" to let Link Enterprise know which configured content system to search."
      },
      {
        "name": "location",
        "kind": "optional",
        "type": "string",
        "description": "S3 Bucket name where you want to delete the document.",
        "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\": \"s3\",\n       \"ids\":\"unique s3 Id\",\n   \"location\":\"s3BucketName\"\n\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "C4pSfZHstrxmG8KSy6hS0"
  },
  "description": "",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "delete-a-file",
  "legacyHash": "RZpY6k9dlIB2WTVx-E1YN"
}
```
:::



