Replacing a pdf

by user95269   Last Updated September 10, 2019 21:07 PM

I am looking to delete a file permanently.

It says that is is not being used in any places and I have deleted it, but it is still showing up. I want to replace it, but Drupal just keeps making a new version.

I've even tried to redirect to a newer version of the file but it still doesn't work.

Please advise.

Tags : files

Answers 1

You can use a php function (via devel, Drush or DrupalConsole) file_delete($fid) to remove the file from the server. Then your redirect will work. Also it's helpful to read through this ticket if you have the time and the patience.

September 10, 2019 20:55 PM

Related Questions

Updated August 12, 2016 08:03 AM

Updated September 01, 2016 08:04 AM

Updated February 15, 2017 14:03 PM

Updated March 14, 2017 14:07 PM

Updated August 23, 2015 17:03 PM