---
updatedAt: 2026-06-05T18:58:52.000Z
agentTools:
  projectIndex: https://developer.eagleeyenetworks.com/llms.txt
---

# /files/{id}

Recycles an item by ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "MEDIA",
    "version": "3.0.0"
  },
  "servers": [
    {
      "url": "https://{BaseUrl}/api/v3.0",
      "description": "Eagle Eye Networks API Server",
      "variables": {
        "BaseUrl": {
          "default": "api.cxxx.eagleeyenetworks.com",
          "description": "HTTPS Base url to use for all API calls, retrieved from https://api.eagleeyenetworks.com/api/v3.0/clientSettings"
        }
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Files",
      "description": "Operations about files.",
      "externalDocs": {
        "description": "More information about files.",
        "url": "https://developerv3.eagleeyenetworks.com/docs"
      }
    }
  ],
  "paths": {
    "/files/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "delete": {
        "tags": [
          "Files"
        ],
        "description": "Recycles an item by ID.",
        "operationId": "deleteFile",
        "responses": {
          "204": {
            "description": "File moved to recycle bin."
          },
          "400": {
            "$ref": "#/components/responses/validationError"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/resourceNotFound"
          },
          "500": {
            "$ref": "#/components/responses/internalServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "ApiV3Error": {
        "type": "object",
        "properties": {
          "code": {
            "description": "HTTP code defined in EEN Standard Code Values",
            "type": "integer"
          },
          "status": {
            "description": "A string enum describing the code",
            "type": "string",
            "enum": [
              "cancelled",
              "unknown",
              "invalidArgument",
              "deadlineExceeded",
              "notFound",
              "conflict",
              "permissionDenied",
              "resourceExhausted",
              "failedPrecondition",
              "aborted",
              "outOfRange",
              "unimplemented",
              "internal",
              "unavailable",
              "dataLoss",
              "unauthenticated",
              "mediaTypeNotSupported",
              "acceptNotSupported",
              "methodNotSupported",
              "tooManyRequests",
              "badGateway"
            ]
          },
          "message": {
            "description": "Developer friendly human readable error message in English",
            "type": "string"
          },
          "details": {
            "description": "An array of extensible objects that define error information",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExceptionDetail"
            }
          }
        },
        "required": [
          "code",
          "status",
          "message",
          "details"
        ]
      },
      "ExceptionDetail": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/ErrorInfoExceptionDetail"
          },
          {
            "$ref": "#/components/schemas/BadRequestExceptionDetail"
          },
          {
            "$ref": "#/components/schemas/ResourceInfoExceptionDetail"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "errorInfo": "#/components/schemas/ErrorInfoExceptionDetail",
            "badRequest": "#/components/schemas/BadRequestExceptionDetail",
            "resourceInfo": "#/components/schemas/ResourceInfoExceptionDetail"
          }
        },
        "properties": {
          "type": {
            "description": "A string enum describing the type of detail object.",
            "type": "string",
            "enum": [
              "errorInfo",
              "badRequest",
              "resourceInfo"
            ]
          }
        },
        "required": [
          "type"
        ]
      },
      "ErrorInfoExceptionDetail": {
        "properties": {
          "type": {
            "description": "A string enum describing the type of detail object.",
            "type": "string",
            "enum": [
              "errorInfo"
            ]
          },
          "reason": {
            "description": "The reason for the error. This is a constant value that identifies the proximate cause of the\nerror. Error reasons are unique within a particular domain of errors.\n",
            "type": "string",
            "enum": [
              "unauthenticated",
              "unexpectedArgument",
              "missingRequiredArgument",
              "wrongArgumentValue",
              "invalidPermission",
              "wrongEdition",
              "wrongAccountType",
              "resourceNotFound",
              "endpointNotFound",
              "methodNotSupported",
              "unexpectedError",
              "acceptNotSupported",
              "alreadyExists",
              "foreignKeyConflict",
              "childDevicesExist",
              "contentNotSupported",
              "deadlineExpired",
              "tooManyRequests",
              "deviceUnavailable",
              "serviceUnavailable",
              "invalidJSON",
              "resourceLocked",
              "notSupportedOnBridge",
              "outOfRetention",
              "deviceIdentificationFailed",
              "credentialValidationFailed",
              "credentialSetupFailed",
              "localUrlValidationFailed",
              "hwRegistrationFailed",
              "failedAddingCameraAfterValidation",
              "neverConnected",
              "reconnectFailed",
              "unsupportedModel",
              "purged",
              "userBlocked",
              "userTemporarilyBlocked",
              "quotaExceeded",
              "alreadyValidated",
              "reAuthenticationRequired",
              "badGateway"
            ]
          },
          "domain": {
            "description": "Logical grouping to which the \"reason\" belongs\n",
            "type": "string"
          },
          "metadata": {
            "$ref": "#/components/schemas/ExceptionMetadata"
          }
        }
      },
      "BadRequestExceptionDetail": {
        "properties": {
          "type": {
            "description": "A string enum describing the type of detail object.",
            "type": "string",
            "enum": [
              "badRequest"
            ]
          },
          "argumentViolations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArgumentViolation"
            }
          }
        }
      },
      "ArgumentViolation": {
        "properties": {
          "argumentName": {
            "type": "string",
            "description": "Name of the argument"
          },
          "description": {
            "type": "string",
            "description": "Description of the violation"
          }
        }
      },
      "ResourceInfoExceptionDetail": {
        "properties": {
          "type": {
            "description": "A string enum describing the type of detail object.",
            "type": "string",
            "enum": [
              "resourceInfo"
            ]
          },
          "resource": {
            "description": "Referenced resource type, eg \"cameras\", \"bridges\", or \"locations\".",
            "type": "string"
          },
          "ids": {
            "type": "array",
            "description": "Identities of resources",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ExceptionMetadata": {
        "properties": {
          "path": {
            "description": "Path of the request",
            "type": "string"
          },
          "method": {
            "description": "Method of the request",
            "type": "string"
          }
        }
      },
      "id": {
        "type": "string",
        "description": "The ID of the item.",
        "format": "uuid",
        "example": "123e4567-e89b-12d3-a456-426655440000",
        "readOnly": true
      }
    },
    "parameters": {
      "id": {
        "in": "path",
        "name": "id",
        "description": "Item ID.",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/id"
        }
      }
    },
    "responses": {
      "validationError": {
        "description": "The supplied object is invalid. Error detail will contain the validation error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiV3Error"
            },
            "examples": {
              "unexpectedArgument": {
                "value": {
                  "code": 400,
                  "status": "invalidArgument",
                  "message": "Unexpected argument: name",
                  "details": [
                    {
                      "type": "errorInfo",
                      "reason": "unexpectedArgument",
                      "domain": "apiv3",
                      "metadata": {
                        "path": "/api/v3.0/<resource>"
                      }
                    }
                  ]
                }
              },
              "missingRequiredArgument": {
                "value": {
                  "code": 400,
                  "status": "invalidArgument",
                  "message": "Missing required arguments: name, id",
                  "details": [
                    {
                      "type": "errorInfo",
                      "reason": "missingRequiredArgument",
                      "domain": "apiv3",
                      "metadata": {
                        "path": "/api/v3.0/<resource>"
                      }
                    }
                  ]
                }
              },
              "badRequestInvalidJSON": {
                "value": {
                  "code": 400,
                  "status": "invalidArgument",
                  "message": "Invalid JSON",
                  "details": [
                    {
                      "type": "errorInfo",
                      "reason": "invalidJSON",
                      "domain": "apiv3",
                      "metadata": {
                        "path": "/api/v3.0/<resource>"
                      }
                    }
                  ]
                }
              },
              "badRequestInvalidArgument": {
                "value": {
                  "code": 400,
                  "status": "invalidArgument",
                  "message": "Invalid Argument: Argument name is too long",
                  "details": [
                    {
                      "type": "errorInfo",
                      "reason": "wrongArgumentValue",
                      "domain": "apiv3",
                      "metadata": {
                        "path": "/api/v3.0/<resource>"
                      }
                    },
                    {
                      "type": "badRequest",
                      "argumentViolations": [
                        {
                          "argumentName": "name",
                          "description": "Name is too long"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "unauthorized": {
        "description": "You are not authenticated. Please authenticate and try again.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiV3Error"
            },
            "example": {
              "code": 401,
              "status": "unauthenticated",
              "message": "The client caller does not have a valid authentication credential",
              "details": [
                {
                  "type": "errorInfo",
                  "reason": "unauthenticated",
                  "domain": "apiv3",
                  "metadata": {
                    "path": "/api/v3.0/<resource>"
                  }
                }
              ]
            }
          }
        }
      },
      "forbidden": {
        "description": "You have no permission to access the specified resource.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiV3Error"
            },
            "examples": {
              "invalidPermission": {
                "value": {
                  "code": 403,
                  "status": "permissionDenied",
                  "message": "The client caller does not have permission for the specified operation",
                  "details": [
                    {
                      "type": "errorInfo",
                      "reason": "invalidPermission",
                      "domain": "apiv3",
                      "metadata": {
                        "path": "/api/v3.0/<resource>"
                      }
                    }
                  ]
                }
              },
              "wrongEdition": {
                "value": {
                  "code": 403,
                  "status": "permissionDenied",
                  "message": "This feature is not enabled for the account",
                  "details": [
                    {
                      "type": "errorInfo",
                      "reason": "wrongEdition",
                      "domain": "apiv3",
                      "metadata": {
                        "path": "/api/v3.0/locations"
                      }
                    }
                  ]
                }
              },
              "wrongAccountType": {
                "value": {
                  "code": 403,
                  "status": "permissionDenied",
                  "message": "This feature is only available for end users",
                  "details": [
                    {
                      "type": "errorInfo",
                      "reason": "wrongAccountType",
                      "domain": "apiv3",
                      "metadata": {
                        "path": "/api/v3.0/locations"
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "resourceNotFound": {
        "description": "Referenced resource could not be found.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiV3Error"
            },
            "examples": {
              "endpointNotFound": {
                "value": {
                  "code": 404,
                  "status": "notFound",
                  "message": "The API endpoint was not found",
                  "details": [
                    {
                      "type": "errorInfo",
                      "reason": "endpointNotFound",
                      "domain": "apiv3",
                      "metadata": {
                        "path": "/api/v3.0/<resource>"
                      }
                    }
                  ]
                }
              },
              "resourceNotFound": {
                "value": {
                  "code": 404,
                  "status": "notFound",
                  "message": "The resource was not found",
                  "details": [
                    {
                      "type": "errorInfo",
                      "reason": "resourceNotFound",
                      "domain": "apiv3",
                      "metadata": {
                        "path": "/api/v3.0/<resource>"
                      }
                    },
                    {
                      "type": "resourceInfo",
                      "resource": "<resource>",
                      "ids": [
                        "<ids>"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "internalServerError": {
        "description": "Something went wrong in the server. Please try again.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiV3Error"
            },
            "example": {
              "code": 500,
              "status": "internal",
              "message": "An internal error has occurred. Please try again later.",
              "details": [
                {
                  "type": "errorInfo",
                  "reason": "unexpectedError",
                  "domain": "apiv3",
                  "metadata": {
                    "path": "/api/v3.0/<resource>"
                  }
                }
              ]
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true
  }
}
```