Delete a file from the repository

Send a Delete request to remove a file from the Control Room repository.

Prerequisites

JSON Web Token (JWT)
All Control Room APIs require a JSON Web Token (JWT) to access the APIs. Generate an authentication token using the Enterprise 11 Authentication API.
Permissions
You must have Delete permission for the folder you want to delete. If you can delete from the Control Room interface, you can delete using this API.

See Enterprise 11: Bot permissions for a role.

Note:
  • Use the Swagger definition files installed with your Control Room to test the APIs. View the available Swagger APIs at http://<your_control_room_url>/swagger/.
  • You can also use a REST client to complete this task.

Procedure

  1. Add an authentication token to the request header.
    Note: Use the Enterprise 11 Authentication API to generate a JSON Web Token.
  2. Select Delete as the method.
  3. In the URL, add the id for the file you are deleting.
    URL example:

    http://<your_control_room_url>/v1/repository/files/20

  4. Send the request.
    • In a REST Client, click SEND.
    • In the Swagger interface, click Execute.
    Response body:
    OK