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

...ete