---
title: "Canvas..::.deleteCurrentVObject Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_deleteCurrentVObject.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Canvas.deleteCurrentVObject Method 
 
Delete the currently selected v-object and shows a confirmation dialog if needed.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gm5/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function deleteCurrentVObject(needConfirm);
```
 
### Parameters
 
 - needConfirm
     - Type: Global.Boolean
 **true** if the delete confirmation dialog should be shown; otherwise **false**.
   
## See Also

### Reference

- [Canvas Class](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
