Logtalk built-in predicate: abolish_protocol/1

contents > reference manual > built-in predicates

## `abolish_protocol/1`

#### Description

>     abolish_protocol(Protocol)

> Removes from the database a dynamic protocol.

#### Template and modes

>     abolish_protocol(@protocol_identifier)

#### Errors

> Protocol is a variable:
>   `instantiation_error`
> Protocol is not a valid protocol identifier:
>   `type_error(protocol_identifier, Protocol)`
> Protocol is an identifier of a static protocol:
>   `permission_error(modify, static_protocol, Protocol)`
> Protocol does not exist:
>   `existence_error(protocol, Protocol)`

#### Examples

>     | ?- abolish_protocol(listp).

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