Mass deleting of files doesn't work properly in Blender File View. Each file requires to be confirmed separately. #105500
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#105500
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.49
Blender Version
Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash:
rB55485cb379f7
Worked: (newest version of Blender that worked as expected)
Short description of error
Mass deleting of files doesn't work properly in Blender File View. Each file requires to be confirmed separately. That makes it awkward to delete multiple selected files.
Exact steps for others to reproduce the error
Open Blender
File -> Open
Move to Blender project files
Select and press x to delete multiple files at once
You need to confirm on every file
Why is this a bug? It seems that even deleting in Windows works the same way.
Noo no in Windows if you select multiple files it shows a prompt to delete all files at once. Blender File View though requires you to confirm the deletion of every file seperatly and that is super awkward. Imagine you want to delete like 10 or 100 files (like an image sqeuence).
So, I decided to investigate if this is a regression, and in the end: are you sure that by selecting several projects/folders you cannot delete them all at once?
This is not a problem with blender, but with your operating system. Not sure if it's possible to delete all selected files with one Win-Api call to match manual deletion.
Just call the windows "delete multiple items" instead "file delete" prompt?
Well i don't know but it's a very annoying situation.
There are two different confirmations that can happen.
Within Blender
if you delete multiple files within Blender you will get just a single confirmation alert from Blender for the group of them.
From the Operating System
When deleting files, Blender moves them to the Recycle Bin. It has been the default configuraton of Windows, since version 8, that it does NOT give you a confirmation alert when this happens. This is because the act is not destructive as you can just move things back out of it.
So on my computer, using defaults, I do not get any warning from Windows when deleting files from Blender or from an explorer window. If yours is behaving differently and is not how you prefer, then change it:
Right-click on the Recycle Bin and select "Properties" from the Context Menu. Then uncheck the box for "Display delete confirmation dialog"
I prefer to confirm deletion but don't think having to confirm on every single file, when i wanna mass delete files within Blenders File View, is a smart operation.
@Harley This is not a good solution, as the Delete Multiple Items message box should appear instead. Did you watch the video i've attached and how annoying mass deleting files is?
Windows File browser gives you just one confirmation box to delete all selected items.
edit: Imagine you want to delete like 300 images (sequence) with the Blender File Viewer, that will result in the need of confirming every single file because the rest of Blender will be locked until it's done. That is insane, you probably need to quit Blender with the task manager.
One easy solution to consider is for us to turn off confirmations within our OS call for moving to recycle bin (probably using FOF_ALLOWUNDO | FOF_SILENT | FOF_WANTNUKEWARNING | FOF_NOCONFIRMATION | FOF_NOCONFIRMMKDIR). That way you wouldn't get a Windows dialog (unless there is an error or if anything would be permanently destroyed) when deleting from within Blender even if you have that preference selected (shown above), but you'd still get it outside of Blender when deleting files in Explorer.
The only way to get the Windows "Delete Multiple Items" dialog is if we delete the multiple items at once using a single OS call. There isn't an alternative solution like turning off the warning on all but the first one when doing per-item deletions. Because if you answered "No" to that first one the rest would still be moved.
Adding a new operator to soft delete multiple items in a group isn't that simple because we have to support multiple platforms. And that is a feature request, not a bug report.
That wouldn't happen to me because I have my Windows preferences set to the defaults, like most users, so I can delete without seeing those Windows dialogs.
Wait wait that is the default setting? I don't remember changing this. You sure?
edit: Doesn't change the awkward behaviour when using that specific setting though. It will result in people loosing it's mind when mass deleting files.
Feature request ok but it can also result in a bug like behaviour when Blender is kinda locked until you force close it via task manager or press yes or no a couple hundred times.
The following shows someone complaining about this, thinking it is a changed default in Windows 10. In the thread you will find someone then does fresh installs of old versions of Windows to confirm.
Apparently this option (to turn the confirmation off and on) was introduced in Windows 95. It was enabled by default until Windows 7. But has been disabled by default since Windows 8.
https://superuser.com/questions/1705010/has-windows-10-recently-started-defaulting-to-not-asking-before-deleting-files
Closing as feature request.
This issue only affects users deleting multiple files at once within the File Browser, on the Windows platform only, and only if they have also enabled the "Display delete confirmation dialog" OS preference (which has been off by default since windows 8). In that case they receive more OS dialogs than they may wish (once per file rather than once per group of deletions).
In order to do this better we'd need a
BLI_delete_soft
that deletes groups of files. Probably using IFileOperation::DeleteItems instead of current IFileOperation::DeleteItem indelete_soft
infileops.c
.