Scalr\Model\Entity\Tag::clearTags PHP Method

clearTags() public static method

Clear unused tags
public static clearTags ( )
    public static function clearTags()
    {
        \Scalr::getDb()->Execute('DELETE FROM tags WHERE id NOT IN(SELECT tag_id FROM tag_link GROUP BY tag_id)');
    }