Wowpedia

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

READ MORE

Wowpedia
Advertisement

Cancels an auction.

C_AuctionHouse.CancelAuction(ownedAuctionID)

Arguments[]

ownedAuctionID
number

Example[]

  • Cancels the currently selected auction.
function Example() -- /run Example()
	C_AuctionHouse.CancelAuction(AuctionHouseFrame.AuctionsFrame.selectedAuctionID)
end
  • Presses the "Cancel Auction" button, in a macro suitable format which uses a secure template.
/run if not CA then local f=CreateFrame("Button","CA",nil,"SecureActionButtonTemplate")f:SetAttribute("type","click")f:SetAttribute("clickbutton",AuctionHouseFrame.AuctionsFrame.CancelAuctionButton)end
/click CA LeftButton 1
/click StaticPopup1Button1

Patch changes[]

Shadowlands Patch 9.1.5 (2021-11-02): Protected when called from a (macro) script.
Battle for Azeroth Patch 8.3.0 (2020-01-14): Added.

See also[]


Advertisement