How i can remove views from my discussion board List name "Answered Questions" & "Unanwered questions"

SharePoint Asked by user43231 on January 8, 2021

I have added a discussion board list inside my team site. but I want to remove some views such as: Answered question, unanswered questions, etc… I am not sure if these are standard view or just a filters:-

enter image description here

But I can not find a way to hide these views/filters "Unanswered questions" , "Answered Questions" & "Featured"

2 Answers

If you want to get rid of the views permanently, then you can also use this PowerShell fuction which deletes a view from the list.

function Delete-ListView()

            #get Client Object
            $context = New-Object Microsoft.SharePoint.Client.ClientContext($url)
            $context.Credentials = $credentials

            #Retrieve List
            $list = $context.Web.Lists.GetByTitle($listName)
            Write-Host "Error while getting context. Error -->> "  + $_.Exception.Message -ForegroundColor Red
            $view = $list.Views.GetByTitle($viewName)


            Write-Host "View deleted successfully" -ForegroundColor Green
            Write-Host ("Error while deleting view for a List. Error -->> " + $_.Exception.Message) -ForegroundColor Red



# Get Credentials
$Creds = Get-Credential

# Function Call
Delete-ListView "" $Creds "Discussion Board" "Answered question"

Answered by Asad Refai on January 8, 2021

I am able to hide the unanswered and ... using below code:


also for best reply

li[text='Best Reply']
    display:none !important;

Answered by Amay Kulkarni on January 8, 2021

Add your own answers!

Related Questions

Library Search Permissions

1  Asked on December 26, 2020 by joe-fedorowicz


Exceeds Threshold

4  Asked on December 25, 2020


SPListItemCollection to Dictionary

1  Asked on December 24, 2020 by k-jones


Use SharePoint as front end for access

2  Asked on December 22, 2020 by dominica


Save Modal Dialog Field Value to Refresh Page DIV

1  Asked on December 22, 2020 by aurumpotabile


_x0020_ Not Working in AJAX

1  Asked on December 19, 2020 by bigchungus


Edit Hidden Item in List

1  Asked on December 18, 2020 by decave


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP