DeleteObject

Deletes a single object from the document.

Syntax

rhinoscriptsyntax.DeleteObject (object_id)

rhinoscript.object.DeleteObject (object_id)

Parameters

object_id

Required.  String or Guid.  The identifier of the object to delete.

Returns

Boolean

True or false indicating success or failure.

Example

import rhinoscriptsyntax as rs

id = rs.GetObject("Select object to delete")

if id: rs.DeleteObject(id)

Also See

DeleteObjects