Logtalk built-in predicate: abolish_object/1

contents > reference manual > built-in predicates

## `abolish_object/1`

#### Description

>     abolish_object(Object)

> Removes from the database a dynamic object.

#### Template and modes

>     abolish_object(@object_identifier)

#### Errors

> Object is a variable:
>   `instantiation_error`
> Object is not a valid object identifier:
>   `type_error(object_identifier, Object)`
> Object is an identifier of a static object:
>   `permission_error(modify, static_object, Object)`
> Object does not exist:
>   `existence_error(object, Object)`

#### Examples

>     | ?- abolish_object(list).

previous | glossary | next
Copyright © Paulo Moura — Logtalk.org