1,388 bytes added,
19:43, 22 July 2013 The DeleteObject Activity deletes a {{UBIK}} object from memory and the database.
{{ActivityInfoBox
| title = Delete Object
| name = DeleteObject
| image =
| imagecaption = Activity DeleteObject
| purpose = Delete an object from the database
| category = Object Primitives
| returns = True if successful
| version = 2.1+
}}
==Arguments==
{| class="wikitable sortable" | width = "50%"
|-
! Argument !! Type !! Direction !! Purpose
|- align="left"
| UBIKObject|| BaseClass || In || The object to delete
|- align="left"
| ShallowDelete|| Boolean || In || If True, only the object itself will be deleted, if false it will try to also delete affected objects of the change ("Deep delete")
|- align="left"
| Result|| Boolean|| Out || True if successful, false if failed
|}
==Usage==
This activity is used to delete a previously created object (e.g. with the [[Activity CreateInstance|CreateInstance]] activity) from memory and the database.
{{Attention|The delete is permanent, the object can bot be restored!}}
==Example==
Delete the given object shallow:
{| class="wikitable" | width = "50%"
|-
! Argument!! Value
|- align="left"
| UBIKObject|| Connect this argument with a variable
|- align="left"
| ShallowDelete || <source lang = "vbnet">"True"</source>
|}
==See also==
* [[Workflow Designer]]
* [[Activity CreateInstance]]
[[Category:Workflows]] [[Category:Activities]]