delete_user tries to detect if the user's home directory is mounted on a network share by calling df and then checking if the output contains 'dev'. This can cause incorrect results under a few cirmcumstances. For example, if the user's name contains 'dev'.
There are also cases where lines for the user may fail to be removed from sudoers. Example, if there's a tab after the username.