if its to remove packages that users don’t have permission to login to your admin portal, select settings from the download manager section, and you will see an option which is called When user is not alowed to download: under access settings. Change this to Hide Everything, this will remove the package form the search results unless the user has access to the package.