in searchEngine moving deleteDirectory to the Abstract class