Should it be (entry as chrome.DirectoryEntry).removeRecursively(); ?