How to remove files using File widget


Managed files are deleted on cron run for D7.

Tags: Drupal 7 / Entities / Files

Similar questions

How to remove all the divs inside the $widget of a views exposed filter?
I need to remove all the divs inside the $widget of a views exposed filter. I need only the single form fields without any html around it. I don't know PHP. Any suggestions?
Can I remove the "summary" from the "Text (formatted, long, with summary)" widget?
When creating a new content type, by default it has the Body field, which has a Field type of Text (formatted, long, with summary). For this content type, I don't want authenticated users to see the summary. What's the proper way to hide the "edit summary" part for non-admin users? Or, am I better off deleting the default Body field and creating a ...
Which hook is invoked when pressing the remove button with widget image?
In a content type named "R" there is a image field say "I". When a node with R->I is filled with a image file then standard you can remove this by pressing the remove button. The standard images widget is used in drupal 7. When I press this remove button something is executed as I get a message just 2 cm above the field "I" which is displaying the ...
How can I remove some measure units from the Physical Fields widget?
I'm trying to alter the widget for the fields implemented by the Physical Fields module, using hook_field_widget_form_alter(). I'm trying to remove some units from the select list, but there isn't a select list in $element. How can I alter those units?
FileField Permissions- How can I allow users to upload a file without giving them the ability to remove files that have been uploaded?
I want to be able to upload a file into an article but without the ability to remove other files uploaded from other users to the same article. Is it possible? I tried the Field Permissions module; I can edit, but I cannot upload.
Unable to upload files. Though the maximum file size limit is 80 MB, can't upload even 50 kb files
I copied a site from localhost to AWS server. I can easily upload files in localhost but when I try uploading in the live site it gives me the error "An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (80 MB) that this server supports." In php.ini and .htaccess and settings.php I have changed upload_max_filesiz...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.