What is Fancy File Delete?
It's a module specifically designed to help you manually remove documents you have uploaded and linked to your site.
Why is Fancy File Delete necessary?
A change made to Drupal in the last year by the Drupal Community of developers removed the ability to delete files via the existing method in preparation for the rollout of the Media Library Initiative. The problem stems from the fact that the Media Library is still in development and not ready for use. In the meantime, we're offering this interim solution.
Why would you use Fancy File Delete?
To quickly remove files that
- contain out-of-date health information that, if not removed, could result in harm, or
- are subject to legal orders to cease and desist display on the site.
How to enable Fancy File Delete
- Submit the Service Request Form to request the Fancy File Delete module be added to your site.
- If you are NOT a Site Builder, ask us to also prepare the View as described in the next step for you.
How to use the module
First, make the View provided with the module more user-friendly. Note: You must be a Site Builder to perform this step, so let us know if you need assistance in completing it.
- In your browser's URL field click at the end of your site's domain name (example: sitefarm.ucdavis.edu/{here}) and add /admin/config/content/fancy_file_delete/list
- Hover your mouse anywhere over the text in the body of the page and look for the Edit pen on the right side. Click on that and select Edit View from the submenu.
- In the first column of View configuration options locate Filter Criteria and click its Add button.
- Check Filename and click the Apply (this display) button.
- In the popup, configure the following:
- check the box to expose the filter
- change Operator to 'contains'
- Click Apply (this display)
- Repeat from step 3 to click the Add button in Filter Criteria.
- This time, check the File MIME type and apply steps 4 and 5.
- Save your View changes.
Second, proceed to delete the files, one by one.
- Navigate to Shortcuts » All Content » Files tab and locate the files you intend to delete. Right click on the file name in the Name column and copy/paste the URL to a safe location so it can be used in the Fourth Step. Repeat as necessary.
- Navigate to Manage » Configuration » Content Authoring » Fancy File Delete.
- Click on the List tab.
- Locate each file to be deleted and make note of its exact FILE ID number.
- Click on the Manual tab.
- Enter in the FILE ID number. NOTE: the system seems only capable of deleting one file at a time, so don't list more than one.
- Click the Engage button to delete it.
- NOTE: If you receive an error message saying "Temporarily Unavailable" this is a phantom message and can be safely ignored. The module has a couple of bugs in it, but your file has been deleted.
- Navigate back to All Content » Files tab and verify your files are gone.
Third, clear your site's cache on Site Factory
- If you have access to Site Factory, clear your site's cache. If you do not have access to Site Factory, please submit a request to the SiteFarm team to do this for you. This is an essential step in the process because the platform memory cache is set to only clear itself once every two weeks for files. Since files don't change very often, the cache clear setting is deliberately low to improve the overall performance of the service.
Fourth, contact the SiteFarm team at sitefarm@ucdavis.edu and request your file be deleted from Fastly
- At the time of this writing, files are held in a state of "soft purge" on Fastly in the event hosting fails; this allows for a safe fallback until such time as the problem is resolved.
- Asking us to do a hard purge on your file ensures it is permanently removed from the record.
- Please provide the full file URL when you send your request.