Loading...


Related Products


Why can’t I delete certain files or directories in the Drupal docroot?

While trying to delete files or directories in the Drupal docroot, you might get the following Permission denied messages:

ide:~$ rm -Rf project
                                        rm: cannot remove 'project/docroot/sites/default/files': Permission denied
                                        rm: cannot remove 'project/docroot/sites/default/default.settings.php': Permission denied
                                        rm: cannot remove 'project/docroot/sites/default/settings.php': Permission denied
                                        rm: cannot remove 'project/docroot/sites/default/default.services.yml': Permission denied

The above issue is related to Drupal permissions. Before you can delete those files or directories, you must change permissions.

To do so, run the following command:

chmod -R u+w /home/ide/project/docroot/sites/default

You can now delete those files and directories.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation