---
name: "glDeleteLists"
section: "3x"
platform: "linux"
package: "xlibmesa-gl-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/glDeleteLists"
---

# glDeleteLists(3x)

delete a contiguous group of display lists

## NAME

**glDeleteLists** - delete a contiguous group of display lists

## C SPECIFICATION

void **glDeleteLists**( GLuint *list*,

```
	GLsizei range )
```

## PARAMETERS

- *list*

  Specifies the integer name of the first display list to delete.

- *range*

  Specifies the number of display lists to delete.

## DESCRIPTION

**glDeleteLists** causes a contiguous group of display lists to be deleted. *list* is the name of the first display list to be deleted, and *range* is the number of display lists to delete. All display lists *d* with *list* ≤ *d* ≤ *list* + *range* - 1 are deleted.

All storage locations allocated to the specified display lists are freed, and the names are available for reuse at a later time. Names within the range that do not have an associated display list are ignored. If *range* is 0, nothing happens.

## ERRORS

**GL\_INVALID\_VALUE** is generated if *range* is negative.

**GL\_INVALID\_OPERATION** is generated if **glDeleteLists** is executed between the execution of **glBegin** and the corresponding execution of **glEnd**.

## SEE ALSO

**glCallList(3G)**, **glCallLists(3G)**, **glGenLists(3G)**, **glIsList(3G)**, **glNewList(3G)**
