It is not an idiom that I have ever heard before, but I suppose it is intended to mean about the same as 'putting yourself down' or 'whittling away at your self-esteem': making yourself feel or appear worse or less able.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.