public function deleteByCategoryId(int $categoryId)
    {
        $deleteCondition = [sprintf("%s = ?", $this->getIdFieldName()) => $categoryId];

        return (bool) $this->getConnection()->delete($this->getMainTable(), $deleteCondition);
    }
public function deleteByCategoryId(int $categoryId)
    {
        $deleteCondition = [sprintf("%s = ?", $this->getIdFieldName()) => $categoryId];

        return (bool) $this->getConnection()->delete($this->getMainTable(), $deleteCondition);
    }
public function deleteByCategoryId ( int $ categoryId ) { $ deleteCondition = [ sprintf ( "%s = ?" , $ this -> getIdFieldName ( ) ) => $ categoryId ] ; return ( bool ) $ this -> getConnection ( ) -> delete ( $ this -> getMainTable ( ) , $ deleteCondition ) ; }
Delete layered filters configuration by Category Id.

@param int $categoryId Category Id

@return bool
Delete layered filters configuration by Category Id .