Delete empty directories using events