glDeleteVertexArrays - OpenGL 4 Reference Pages

## Name

glDeleteVertexArrays — delete vertex array objects

## C Specification

`void glDeleteVertexArrays(` | GLsizei n,
| const GLuint *arrays`)`;

## Parameters

`n`

  Specifies the number of vertex array objects to be deleted.

`arrays`

  Specifies the address of an array containing the `n` names of the objects to be deleted.

## Description

`glDeleteVertexArrays` deletes `n` vertex array objects whose names are stored in the array addressed by `arrays`. Once a vertex array object is deleted it has no contents and its name is again unused. If a vertex array object that is currently bound is deleted, the binding for that object reverts to zero and the default vertex array becomes current. Unused names in `arrays` are silently ignored, as is the value zero.

## Errors

`GL_INVALID_VALUE` is generated if `n` is negative.

## Version Support

| OpenGL Version
--- | ---
Function / Feature Name | 2.0 | 2.1 | 3.0 | 3.1 | 3.2 | 3.3 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | 4.5
`glDeleteVertexArrays` | - | - | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔

## See Also

glGenVertexArrays, glIsVertexArray, glBindVertexArray

## Copyright

Copyright © 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.