This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
After creating an ant shortcut (right-click an ant task in build.xml, choose Create Shortcut), there's no obvious way to remove the shortcut.
You need to go into Advanced Options to remove menu and toolbar buttons; KB shortcuts AFAIK cannot be removed from the GUI (need to use $userdir/config/Shortcuts). At the mercy of the limited ability of the current Options dialog to customize things like this; it is in a state of flux and does not expose a GUI to do everything you might want.
Later.
NetBeans.org Migration: changing resolution from LATER to WONTFIX
*** This bug has been marked as a duplicate of bug 151632 ***