public function purgeDeleted($timeFrame) {
        $config = $this->allConfig();

        return $this->getRepository()->deleteMany(function(Query $query) use ($timeFrame, $config) {
            if ($timeFrame) {
                $query->where($config['deleteField'], '>=', Time::toUnix($timeFrame));

            } else if ($config['useFlag']) {
                $query->where($config['flagField'], true);

            } else {
                $query->where($config['deleteField'], '!=', null);
            }
        }, [
            'before' => false,
            'after' => false
        ]);
    }