[BACKLOG-196] - Rest endpoint refactor and unit test for /repo/files/delete