Fatal error: Uncaught Magento\Framework\Exception\FileSystemException: The directory "/var/www/html/magento/generated/code" cannot be deleted Warning!rmdir(/var/www/html/magento/generated/code): Permission denied in /var/www/html/magento/vendor/magento/framework/Filesystem/Directory/Write.php:202 Stack trace: #0 /var/www/html/magento/vendor/magento/framework/Code/GeneratedFiles.php(87): Magento\Framework\Filesystem\Directory\Write->delete('generated/code') #1 /var/www/html/magento/vendor/magento/framework/App/ObjectManagerFactory.php(111): Magento\Framework\Code\GeneratedFiles->cleanGeneratedFiles() #2 /var/www/html/magento/vendor/magento/framework/App/Bootstrap.php(211): Magento\Framework\App\ObjectManagerFactory->create(Array) #3 /var/www/html/magento/vendor/magento/framework/App/Bootstrap.php(126): Magento\Framework\App\Bootstrap->__construct(Object(Magento\Framework\App\ObjectManagerFactory), '/var/www/html/m...', Array) #4 /var/www/html/magento/index.php(36): Magento\Framework\App\Bootstrap::create('/var/www/html/m.. in /var/www/html/magento/vendor/magento/framework/Filesystem/Directory/Write.php on line 202