This can be achieved via the rails console:
But I think it would be a useful feature to have in core for those who can’t access the console.