Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
m (ClearCursor is more reliable since it won't move the item to the backpack and won't fail if the backpack is full.)
No edit summary
Tag: WoW API docs
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
{{wowapi}} {{restrictedapi|hwevent,noscript|note=* Limited to deleting a single item per hardware event.
{{wowapi}}
 
  +
* ''As of 2022-09-17 Classic (Vanilla and Wrath) can delete multiple items per hardware event and has no NOSCRIPT protection''.}}
Destroys the item currently held by the cursor.
+
<!--desc-->Destroys the item held by the cursor.
  +
DeleteCursorItem()
   
  +
==Details==
'''This does not deselect the item, this destroys it.''' Try [[API ClearCursor|ClearCursor]] to deselect the item.
+
* '''This does not deselect the item, this destroys it.''' Use {{api|t=a|ClearCursor}}() to drop an item from the cursor without destroying it.
   
  +
==Patch changes==
No return value.
 
  +
{{Patch 9.1.5|note=Protected when called from a (macro) script. Limited to deleting a single item per hardware event.}}
  +
{{Patch 9.0.2|note=Requires a hardware event. A single hw event is sufficient for destroying multiple items.}}

Latest revision as of 07:41, 24 August 2023

Destroys the item held by the cursor.

DeleteCursorItem()

Details

  • This does not deselect the item, this destroys it. Use ClearCursor() to drop an item from the cursor without destroying it.

Patch changes

Shadowlands Patch 9.1.5 (2021-11-02): Protected when called from a (macro) script. Limited to deleting a single item per hardware event.
Shadowlands Patch 9.0.2 (2020-11-17): Requires a hardware event. A single hw event is sufficient for destroying multiple items.