Skip to content

Allow deletion of unused assets - #11552

Draft
Abhijith Chatra (abchatra) with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-delete-button-visibility
Draft

Allow deletion of unused assets#11552
Abhijith Chatra (abchatra) with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-delete-button-visibility

Conversation

Copilot AI commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

The asset editor hides Delete for assets whose block-reference metadata still contains IDs from deleted blocks. This prevents users from removing unused named or unnamed assets.

  • Reference cleanup
    • Refresh block asset metadata from the active Blockly workspace before evaluating asset usage.
    • Remove inactive block IDs from named assets without deleting the assets themselves.
    • Continue removing unnamed assets once no active block references remain.
if (blocksEditor?.editor) {
    project.removeInactiveBlockAssets(
        blocksEditor.editor.getAllBlocks(false).map(block => block.id)
    );
}

Copilot AI and others added 2 commits August 27, 2026 20:11
Co-authored-by: abchatra <6107272+abchatra@users.noreply.github.com>
Co-authored-by: abchatra <6107272+abchatra@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with delete button for assets not in use Allow deletion of unused assets Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not able to delete assets not in use

2 participants