Fatal error: Uncaught Magento\Framework\Exception\FileSystemException: The directory "/var/www/html/generated/code/Magento" cannot be deleted Warning!rmdir(/var/www/html/generated/code/Magento): Directory not empty in /var/www/html/lib/internal/Magento/Framework/Filesystem/Driver/File.php:410 Stack trace: #0 /var/www/html/lib/internal/Magento/Framework/Filesystem/Driver/File.php(403): Magento\Framework\Filesystem\Driver\File->deleteDirectory('/var/www/html/g...') #1 /var/www/html/lib/internal/Magento/Framework/Filesystem/Directory/Write.php(174): Magento\Framework\Filesystem\Driver\File->deleteDirectory('/var/www/html/g...') #2 /var/www/html/lib/internal/Magento/Framework/Code/GeneratedFiles.php(87): Magento\Framework\Filesystem\Directory\Write->delete('generated/code') #3 /var/www/html/lib/internal/Magento/Framework/App/ObjectManagerFactory.php(110): Magento\Framework\Code\GeneratedFiles->cleanGeneratedFiles() #4 /var/www/html/lib/internal/Magento/Framework/App/Bootstrap.php(208): Magento\Framework\App\ObjectManagerFacto in /var/www/html/lib/internal/Magento/Framework/Filesystem/Driver/File.php on line 410