How to delete a symbolic link in python? August 14, 2023 by Tarik os.unlink() works for me. It removes the symlink without removing the directory that it links to.