Main Menu

search

You are here

drupal: Delete all root folder files

[last updated: 2020-11-03
Drupal home page
-----

  • This procedure will remove all files in your root drupal directory (public_html on my system).
    You might be doing this in preparation for updating your site, or for restoring it from a saved backup.
    In any case, you should first make sure that you have a good backup of all the root folder files.

    -------------------------------------------------------------

  • In order to delete all these files, you must first change some permissions:
    • In BH File Manager, in public_html:
    • First, change permissions for folder "sites/default":
      in FM, click on the 555 in far right column
      enter 0755 as desired
      click save
    • Then, change permissions for file "sites/default/settings.php":
      in FM, click on the 444 in far right column
      enter 0644 as desired
      click save
    • These changes allow you to delete all the files.

  • in BH FM, in public_html, select all files
    (click top file, hold shift, down-arrow until all files are selected)
    Click Delete (top menu bar)
  • Refresh your FM browser to verify all files have been deleted.

eof