[BACKLOG-194] Refactor and docs for /repos/files/deletepermanent endpoint