CLI: Delete empty folders on download, update, pending (bug 1601)