11.3.68 erase/1

Synopsis

erase(+Ref)

Erases from the database the dynamic clause or recorded term referenced by Ref.

Arguments

Ref
db_reference, must be nonvar

Description

Erases from the database the dynamic clause or recorded term referenced by Ref.

Ref must be a database reference to an existing clause or recorded term.

erase/1 is not sensitive to the source module; that is, it can erase a clause even if that clause is neither defined in nor imported into the source module.

Exceptions

instantiation_error
If Ref is not instantiated.
type_error
If Ref is not a database reference.
existence_error
if Ref is not a database reference to an existing clause or recorded term.

Examples

See Also

ref-mdb-rcd.


Send feedback on this subject.