Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot delete all trashed resources if there are folders[4..4.3]: #12927

Closed
vitalijalbu opened this issue Mar 18, 2023 · 4 comments
Closed

Cannot delete all trashed resources if there are folders[4..4.3]: #12927

vitalijalbu opened this issue Mar 18, 2023 · 4 comments
Assignees

Comments

@vitalijalbu
Copy link

What happened?

Description

Screenshot 2023-03-18 alle 16 59 05

Steps to reproduce

  1. By selecting all trashed resources, button to delete them permanently is disabled because i also have 2 empty folders in trash... maybe it's not a bug?!::

Expected behavior

Actual behavior

Craft CMS version

4.4.3

PHP version

8

Operating system and version

mac

Database type and version

mysql

Image driver and version

No response

Installed plugins and versions

@DenyEs
Copy link

DenyEs commented Mar 20, 2023

I found that I can't even delete a folder itself, even if it's empty - Craft 4.4.3

@brandonkelly brandonkelly self-assigned this Mar 20, 2023
@brandonkelly
Copy link
Member

brandonkelly commented Mar 20, 2023

The bug here is that folders shouldn’t have been listed when viewing soft-deleted assets in the first place, as folders are not capable of being soft-deleted. That’s been fixed for the next Craft 3 and 4 releases.

I found that I can't even delete a folder itself, even if it's empty - Craft 4.4.3

Subfolders cannot be deleted via the “Delete” bulk asset action, as their deletion is a bit more involved and requires additional coordination with JavaScript. To delete a folder, you must first navigate into it, and then choose the Delete folder source path action:

An action menu for a selected subfolder within the source path, including a “Delete folder” option.

@brandonkelly
Copy link
Member

Craft 3.8.4 and 4.4.4 are out with that fix.

@DenyEs
Copy link

DenyEs commented Mar 21, 2023

@brandonkelly Brilliant, thank you Brandon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants