Change password with rest-server?

I am running restic 0.19.1 and rest-server 0.14 and offer this service for all institutes of my university.

When a restic user has setup a repository with restic init is there a way for him to delete it and rerun restic init with a new password?

They can only talk to the rest-server using restic, they have no login at the server.

I (the server admin) can delete their repository directory, but is there a way for the users at their own?

That’s a good question!

AFAIK it is not possible - there’s no “delete” command in restic that deletes an entire repository.

What the user would do is forget all snapshots, then prune to clear out the remains, and then they have an empty repository again.

If they want to change their password they can do so using the key command (either before or after they cleaned out the repository).

If they want to reinitialize encryption parameters such as those stored in the config file in the repository, then as you already know they will need to have their repository deleted, presumably by you as the admin or some automated action.