### Function

# GLib List remove

#### Declaration [src]

    GList*
    g_list_remove (
      GList* list,
      gconstpointer data
    )

#### Description [src]

Removes an element from a `GList`. If two elements contain the same data, only the first is removed. If none of the elements contain the data, the `GList` is unchanged.

This function is not directly available to language bindings.

#### Parameters

`list`

  Type: A list of `gpointer`

  A `GList`, this must point to the top of the list.

  The data is owned by the caller of the function.

`data`

  Type: `gconstpointer`

  The data of the element to remove.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

#### Return value

Type: A list of `gpointer`

The (possibly changed) start of the `GList`.

The data is owned by the called function.