In the newest version of the code you are unable to delete the vyos user. It states that you cannot delete current user vyos even when logged in as a different user.
@jestabro and me also noticed this bug when vyos-configd is in use (default). Thanks for also posting it here.
Bug opened ⚓ T6504 login: user vyos can not be deleted under vyos-configd