delete password enhancement

made first implementation of #403 for review