delete (1) of (list) — Scratch Block Guide
Removes the item at the given 1-based index and shifts later items up by one slot.
What this block does
Removes the item at the given 1-based index and shifts later items up by one slot.
Remove used items from an inventory or draw non-repeating cards from a deck.
- Category: Variables & Lists
- Key tip: When deleting inside a loop, watch out for shifted indices!
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When green flag clicked
- Delete 1 of deck
Try it: Removes the top card so the old item #2 becomes the new item #1.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "delete (1) of (list)" in Scratch?
Remove used items from an inventory or draw non-repeating cards from a deck. When deleting inside a loop, watch out for shifted indices!
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.