# How to remove items from contextMenu?

**URL:** <https://forum.kirupa.com/t/how-to-remove-items-from-contextmenu/238808>\
**Category:** flash\
**Created:** [September 15, 2007, 3:01pm UTC](https://forum.kirupa.com/t/how-to-remove-items-from-contextmenu/238808 "2007-09-15T15:01:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthalus](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Anthalus](https://forum.kirupa.com/u/Anthalus)\
**Post date:** [September 15, 2007, 3:01pm UTC](https://forum.kirupa.com/t/how-to-remove-items-from-contextmenu/238808/1 "2007-09-15T15:01:36Z")

</div>

hello guys!

well, i was trying to make a contextMenu. and everything was working fine till i had more than 15 items (contextMenu doesnt support) in the menu

since i needed to build my menu each time i click it, i used the onSelect function to build it, brolem was the same, once i push it inside, i could not remove him.

Right now, the only solution i can see is, when i invoke my function i need to clear all the contextmenu content and build it again without having to make a new contextmenu (tried that but was only working on the 2x right click)

its there a way to clean all my contextMenu array and make him again?

i was to be possble to, when i click, look for variables and contruct my menu.
