Change record status: 
Project: 
Introduced in branch: 
10.1.x
Introduced in version: 
10.1.0
Description: 

Two new permissions have been added Delete any file and Delete own files

Previously the \Drupal\file\FileAccessControlHandler::checkAccess() code only allowed file owners to delete their own files. Now a role can be granted access to delete any file.

Additionally, the File entity now provides a delete form and an operations field for views. This allows site builders to build UIs for users to delete files. The file listing view shipped with the File module provides an example.

Impacts: 
Site builders, administrators, editors
Module developers
Site templates, recipes and distribution developers

Comments

scott_euser’s picture

Ie, does this stop the need for the https://www.drupal.org/project/file_delete module? In any case, welcome news, thank you!

sokru’s picture

Yes, it seems like the file_delete module becomes obsolete with this change.