# Examples from pyvista.DataSetAttributes.remove
# ==============================================

# Add a point data array to a DataSet and then remove it.
import pyvista as pv
mesh = pv.Cube()
mesh.point_data['my_data'] = range(mesh.n_points)
mesh.point_data.remove('my_data')

# Show that the array no longer exists in `point_data`.
'my_data' in mesh.point_data

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

