Elgg\Database\Annotations::deleteAll PHP Method

deleteAll() public method

Deletes annotations based on $options.
public deleteAll ( array $options ) : boolean | null
$options array An options array. {@link elgg_get_annotations()}
return boolean | null true on success, false on failure, null if no annotations to delete.
    function deleteAll(array $options)
    {
        if (!_elgg_is_valid_options_for_batch_operation($options, 'annotation')) {
            return false;
        }
        $options['metastring_type'] = 'annotations';
        return _elgg_batch_metastring_based_objects($options, 'elgg_batch_delete_callback', false);
    }