---
agentTools:
  projectIndex: https://docs.agilite.io/llms.txt
---

# /data

Deletes an existing Template profile in Agilit-e

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Agilit-e Templates Refactored Test",
    "version": "7"
  },
  "servers": [
    {
      "url": "https://api.agilite.io/templates"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "api-key"
      }
    },
    "schemas": {
      "BadRequest": {
        "properties": {
          "additionalMessages": {
            "description": "List of additional messages that could be returned related to the failed response",
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-ms-summary": "Additional Messages"
          },
          "errorMessage": {
            "description": "Description of error that occurred",
            "type": "string",
            "x-ms-summary": "Error Message"
          },
          "statusCode": {
            "description": "Response code of HTTP request",
            "type": "number",
            "x-ms-summary": "Status Code"
          }
        },
        "type": "object"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/data": {
      "delete": {
        "tags": [
          "Template CRUD APIs"
        ],
        "summary": "/data",
        "description": "Deletes an existing Template profile in Agilit-e",
        "operationId": "templates-delete",
        "parameters": [
          {
            "name": "record-id",
            "in": "header",
            "description": "Unique _id value of the record to be updated",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "description": "data",
                  "properties": {},
                  "type": "object",
                  "x-ms-summary": "data"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest"
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-headers": [],
  "x-explorer-enabled": true,
  "x-proxy-enabled": true,
  "x-samples-enabled": true,
  "x-samples-languages": [
    "curl",
    "node",
    "ruby",
    "javascript",
    "python"
  ],
  "_id": {
    "buffer": {
      "0": 96,
      "1": 91,
      "2": 35,
      "3": 77,
      "4": 132,
      "5": 50,
      "6": 50,
      "7": 0,
      "8": 29,
      "9": 247,
      "10": 248,
      "11": 158
    }
  }
}
```