Use cmdkey to list / add or delete a record in the credentials manager
cmdkey /LIST
cmdkey /DELETE:test
If it is a local machine user, we can use psexec like this:
psexec -i -s cmd.exe
then use cmdkey from that session.
Download psexec from here: https://docs.microsoft.com/en-us/sysinternals/downloads/psexec