Delete method

Deletes an object, as specified in the following table:

For this interface

The Delete method removes

IERUCustomFieldDef

A Custom Field Definition.

IERUMember

A User or Group from a Facility's member list.

IERURoom

An eRoom from a Facility.

IERUItem

An item from an eRoom.

IERUDBColumn

A Column from a Database.

IERURoutingTarget

A Routing Target.

IERULicense

A License.

IERUStationery

A Stationery object.

IERUVote

A Vote from a Ballot.

Syntax


C++:

HRESULT Delete ()

Scripting languages

Object.Delete

Parameters


None.

Return value


C++

The return code.

Scripting languages

None.

Remarks


When you use Delete with IERUMember:

  • Only administrators and users with CanModifyMemberList privileges can delete members.

  • External directory members can be deleted from a facility, but they will reappear the next time the facility is synchronized with the external directory. To permanently remove an external directory member, remove the member from the external directory, not the facility that synchronizes with the external directory. Of course, removing the member from the external directory will affect all of the facilities that synchronize with the external directory.

  • Deleting a member from a facility only marks the member as deleted. Deleted members are still accessible from places they are referenced, as creators of items, or on access control lists, for example. However, deleted members are not returned in Room or Facility membership collections. Use the IsDeleted property to determine if a member has been deleted.

When you use Delete with IERURoom:

  • Only coordinators for a specified eRoom can delete that eRoom.

When you use Delete with IERUItem:

  • If the recycle bin is enabled, the first time you call ::Delete, the item is actually moved to the recycle bin. The IERUItem is still valid after the move. The second time you call delete, the item is in the recycle bin so the item is actually deleted.

  • If the recycle bin is not enabled, item is deleted on the first call to ::Delete.

When you use Delete with IERUDBColumn:

  • erColumnTypeApprovalDate, erColumnTypeDateDone, and erColumnTypeRoomID are invalid values.

  • The ApprovalDate column is automatically deleted when the associated Approval column is deleted.

  • The DateDone column is automatically deleted when the DateIsDue property is set to false on the Date column.

  • The RoomID column is automatically deleted when an enterprise database is deleted or when an enterprise database is converted to a standalone database.

Home

Applies to
IERUDBColumn

IERUCustomFieldDef

IERUItem

IERULicense
IERULicense

IERUMember

IERURoom

IERURoutingTarget

IERUStationery

IERUVote