---
UID: NF:d2d1svg.ID2D1SvgPathData.RemoveCommandsAtEnd
title: ID2D1SvgPathData::RemoveCommandsAtEnd (d2d1svg.h)
description: Removes commands from the end of the commands array.
old-location: direct2d\id2d1svgpathdata_removecommandsatend.htm
tech.root: Direct2D
ms.assetid: A1DB006D-9986-482A-A9F0-9D7C22ABC604
ms.date: 12/05/2018
ms.keywords: ID2D1SvgPathData interface [Direct2D],RemoveCommandsAtEnd method, ID2D1SvgPathData.RemoveCommandsAtEnd, ID2D1SvgPathData::RemoveCommandsAtEnd, RemoveCommandsAtEnd, RemoveCommandsAtEnd method [Direct2D], RemoveCommandsAtEnd method [Direct2D],ID2D1SvgPathData interface, d2d1svg/ID2D1SvgPathData::RemoveCommandsAtEnd, direct2d.id2d1svgpathdata_removecommandsatend
f1_keywords:
- d2d1svg/ID2D1SvgPathData.RemoveCommandsAtEnd
dev_langs:
- c++
req.header: d2d1svg.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: Direct2d.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- direct2d.dll
api_name:
- ID2D1SvgPathData.RemoveCommandsAtEnd
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# ID2D1SvgPathData::RemoveCommandsAtEnd


## -description


Removes commands from the end of the commands array.


## -parameters




### -param commandsCount

Type: <b>UINT32</b>

Specifies how many commands to remove.


## -returns



Type: <b><a href="/windows/win32/com/structure-of-com-error-codes">HRESULT</a></b>

This method returns an HRESULT success or error code.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/d2d1svg/nn-d2d1svg-id2d1svgpathdata">ID2D1SvgPathData</a>
 

 

