How to delete all broken symbolic links with a single line

If you are in the directory:

sudo find -L . -type l -delete

Careful! This will follow good symbolic links and delete bad sym links recursively!

If you want to list them instead, but not delete:

sudo find -L path-to-directory -type l