# Delete enum property on drop down

**URL:** <https://forum.makecode.com/t/delete-enum-property-on-drop-down/4460>\
**Category:** PXT\
**Created:** [November 16, 2020, 7:54pm UTC](https://forum.makecode.com/t/delete-enum-property-on-drop-down/4460 "2020-11-16T19:54:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [November 16, 2020, 7:54pm UTC](https://forum.makecode.com/t/delete-enum-property-on-drop-down/4460/1 "2020-11-16T19:54:36Z")

</div>

I’m very, um, to say the least, finicky about variables that aren’t needed. So whenever I drag a block out that uses a sprite, I go to the `Variables` category and delete `mySprite` after dealing with the block of code.

The same goes for `enum`s. But you have to go to text mode and remove the property\* from the `enum` and I don’t want to risk the editor moving everything around. (I know you guys are working hard on it though)

Especially using the `BlockObject` extension (Thanks @Dreadmask197 for the link):  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/37104d686fb18cd328fa22f24ec28b4dd79c1a4e.png)  
I will never name a property called `myStr`, so I really want to delete it. Maybe you could right-click it and present some options like `rename` and `delete`.

* * *

\*Also, what is the actual name of the “thing” inside an `enum`? I don’t think it’s called a property.

---

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [November 16, 2020, 9:08pm UTC](https://forum.makecode.com/t/delete-enum-property-on-drop-down/4460/2 "2020-11-16T21:08:25Z")

</div>

> [@UnsignedArduino](#):
>
> I’m very, um, to say the least, finicky about variables that aren’t needed. So whenever I drag a block out that uses a sprite, I go to the `Variables` category and delete `mySprite` after dealing with the block of code.

**SAME!**

Sorry, I just had to say it.

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [November 16, 2020, 11:03pm UTC](https://forum.makecode.com/t/delete-enum-property-on-drop-down/4460/3 "2020-11-16T23:03:41Z")

</div>

Hm, it’s not possible right now, seems feasible to support removing user defined kinds in the future (@richard?). I’d imagine we’d have to disable it for the predefined ones (i.e. Player, Enemy for SpriteKinds) as they’re declared in common-packages / not the user code.

The thing inside of an enum is typically called a member (specifically an `enum member`). Possibly worth noting that in this case, `arcade block objects`'s blocks do not create enums – they define a namespace that creates constants of the given name, as we do not currently support extending enums. Just a small subtlety, they otherwise behavior very similarly to enums within blocks. (The feature of adding constants instead of enums is newer / the design was based off the enums dropdown in the first place)

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [November 17, 2020, 12:29am UTC](https://forum.makecode.com/t/delete-enum-property-on-drop-down/4460/4 "2020-11-17T00:29:07Z")

</div>

Yeah, we could probably do it. Probably just do the same thing we do when deleting variables.
