> ## Documentation Index > Fetch the complete documentation index at: https://docs.restaurant365.com/llms.txt > Use this file to discover all available pages before exploring further. # Deleted Entities > Retrieves deleted entity references within a specified date range. At least one of deletedOnStart or deletedOnEnd is required. When only one boundary is provided, the query is scoped to that single day. **Security** The requesting user must have the following permission to retrieve deleted entity references: - Administration → Audit Log → View Audit & SMS Log ## OpenAPI ````json GET /public/v1/core/entity-deleted { "openapi": "3.0.1", "info": { "title": "R365 Public API", "contact": { "name": "R365 Services Team", "email": "r365@restaurant365.com" }, "version": "1.0" }, "security": [ { "Bearer": [] } ], "paths": { "/public/v1/core/entity-deleted": { "get": { "tags": [ "core" ], "summary": "Deleted Entities", "description": "Retrieves deleted entity references within a specified date range. At least one of deletedOnStart or deletedOnEnd is required. When only one boundary is provided, the query is scoped to that single day.\n\n**Security**\n\nThe requesting user must have the following permission to retrieve deleted entity references:\n\n- Administration → Audit Log → View Audit & SMS Log", "parameters": [ { "$ref": "#/components/parameters/TenantId" }, { "name": "deletedOnStart", "in": "query", "description": "Start of the deletion date range (inclusive). Required if deletedOnEnd is not provided. If provided alone, the query is scoped to that single day", "required": false, "schema": { "type": "string", "format": "date-time" } }, { "name": "deletedOnEnd", "in": "query", "description": "End of the deletion date range (inclusive). Required if deletedOnStart is not provided. If provided alone, the query is scoped to that single day", "required": false, "schema": { "type": "string", "format": "date-time" } }, { "name": "entityName", "in": "query", "description": "Filter results to deleted records of the given entity type. Returns all entity types if not specified.", "required": false, "schema": { "type": "string" } }, { "name": "pageSize", "in": "query", "required": false, "schema": { "type": "integer", "format": "int32", "minimum": 1, "maximum": 250, "default": 250 }, "description": "Maximum number of top-level objects to return in one page." }, { "name": "continuationToken", "in": "query", "description": "Cursor from the previous page. Supply the EntityDeletedId of the last record returned to retrieve the next page", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Paged array of deleted entity references matching the supplied criteria.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntityDeletedResponse" } } } }, "400": { "description": "Bad Request — a parameter value is malformed, of the wrong type, or outside its allowed range." }, "401": { "description": "Unauthorized — the bearer token is missing, invalid or expired, or is not valid for the specified tenant." }, "403": { "description": "Forbidden — the caller lacks the permission required for this operation." }, "404": { "description": "Not Found — the requested resource does not exist, or the supplied continuation token is unknown or has expired." }, "409": { "description": "Conflict — the request conflicts with the current state of the resource and cannot be applied." }, "422": { "description": "Unprocessable Entity — a required parameter is missing, or a supplied parameter value is invalid." }, "429": { "description": "Too Many Requests — the caller has exceeded the rate limit; retry after a short delay." }, "500": { "description": "Internal Server Error — an unexpected error occurred while processing the request." } } } } }, "components": { "parameters": { "TenantId": { "name": "x-r365-context-tenant-id", "in": "header", "required": true, "description": "Identifies the R365 tenant the request applies to. Required on every request.", "schema": { "type": "string" } } }, "schemas": { "EntityDeletedResponse": { "type": "object", "description": "Paginated response containing deleted entity records.", "properties": { "entities": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/Record" }, "description": "Deleted entity records for the current page." }, "nextLink": { "type": "string", "nullable": true, "description": "The URL to retrieve the next page of results, or null if this is the last page." } } }, "Record": { "type": "object", "properties": { "entityDeletedId": { "type": "integer", "description": "Unique sequential identifier of the deleted entity record.", "format": "int32" }, "entityId": { "type": "string", "description": "Identifier of the deleted entity instance.", "format": "uuid", "nullable": true }, "entityName": { "type": "string", "description": "Type name of the deleted entity (e.g. Employee, Transaction, DSS).", "nullable": true }, "deletedOn": { "type": "string", "description": "Date and time the entity was deleted.", "format": "date-time", "nullable": true }, "rowVersion": { "type": "string", "description": "Concurrency token representing the version of the record at time of deletion.", "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "scheme": "Bearer" } } } } ````