# Deleting a kind

**URL:** https://forum.makecode.com/t/deleting-a-kind/6297
**Category:** Help
**Created:** [February 22, 2021, 7:10am UTC](https://forum.makecode.com/t/deleting-a-kind/6297 "2021-02-22T07:10:48Z")
**Posts on this page:** 3
**Page:** 1

<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: [February 22, 2021, 7:10am UTC](https://forum.makecode.com/t/deleting-a-kind/6297/1 "2021-02-22T07:10:49Z")

</div>

Many times while creating a game, I accidentally add a kind. How can I remove it?

---

<div class="post-metadata">

### Author: ![omnisImperium](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/omnisimperium/32/2728_2.png) [@omnisImperium](https://forum.makecode.com/u/omnisImperium)
#### Post date: [February 22, 2021, 4:25pm UTC](https://forum.makecode.com/t/deleting-a-kind/6297/2 "2021-02-22T16:25:48Z")

</div>

I might be wrong, but you have to go into the JS bit, and at the top of the main.js file, the classes are being created. You might have to delete that line.

---

<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: [February 22, 2021, 4:26pm UTC](https://forum.makecode.com/t/deleting-a-kind/6297/3 "2021-02-22T16:26:16Z")

</div>

You have to go into JS mode:

1. Search for the `namespace SpriteKind {` code
2. Remove which sprite kind you want to delete.  
So:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/979f88d1721708b6239c0746329111ab21fcd484.png)  
Becomes:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/65d1224fa3f959cd8aeb9119d5eb600c7ae2f9cb.png)  
But you may get errors such as `Property 'Thingamabob' does not exist on type 'typeof SpriteKind'`. Then replace `SpriteKind.Thingamabob` with whichever kind you want, such as Player or Enemy.
