Simplify code to delete object automatically.
Begin arcbot message
This merge request is automatically copied from !1166 (merged) orginally made by @aleksandr.konstantinov
End arcbot message
Small modifications.
Begin arcbot message
This merge request is automatically copied from !1166 (merged) orginally made by @aleksandr.konstantinov
End arcbot message
Small modifications.