Note: This feature is available in Web Workers.
The WebGL2RenderingContext.deleteQuery() method of the WebGL 2 API deletes a given WebGLQuery object.
deleteQuery(query)queryA WebGLQuery object to delete.
None (undefined).
gl must be a WebGL2RenderingContext. WebGLQuery objects are not available in WebGL 1.
const query = gl.createQuery();
// …
gl.deleteQuery(query);