Hello,

Currently, I understand the way to delete a file via Drupal Admin Panel is:

  • Install drupal/file_delete
  • Edit 'Files' section view, & add Field ‘Link to delete’
  • Manually Remove File from all associated pages,articles (else, delete operation will fail)
  • Manually Delete all revisions, (else, delete operation will fail)
  • Then click Delete in 'Files' section of respective file

Is there any way to reduce the above steps?

Can File associations rule be ignored, so that there is no need to manually remove file associations in active version & revisions of articles/pages?

Comments

gisle’s picture

You don't need the File Delete extension.

  1. Open the node the file is attached to as an administrator.
  2. Locate the file attachment field.
  3. Click on "Remove" to the left of the file.
  4. Click on "Save" for the node.

That's it.

- gisle

shaileshghadge’s picture

Thanks for replying.

Pl note, these are mainly image files that I need to delete(currently).  Most of which are inline in Article body.

I could only find the 'removed button' for 'featured image', at the bottom of the Node's 'Edit mode interface'

I searched few articles regarding showing attachment list, but they seemed focused on pdf,etc.

gisle’s picture

The recipe I gave were for deletilgang file attachments. Inline image is a different story and depends on how they are inserted (IMCE, CKEditor, etc.)

- gisle