Unpublish-NAVApp

Unpublishes a NAV App from the app catalog of the specified Microsoft Dynamics NAV Server instance.

Syntax

Unpublish-NAVApp
         [-Name] <String>
         [[-Publisher] <String>]
         [[-Version] <Version>]
         [-ServerInstance] <String>
         [<CommonParameters>]
Unpublish-NAVApp
         [-Path] <String>
         [-ServerInstance] <String>
         [<CommonParameters>]

Description

Use the Unpublish-NAVApp cmdlet to remove a NAV App from the app catalog of the specified Microsoft Dynamics NAV Server instance. The NAV App cannot be unpublished if it is currently installed for a tenant of the specified Microsoft Dynamics NAV Server instance.

Examples

EXAMPLE 1

Unpublish-NAVApp -ServerInstance DynamicsNAV -Name 'Proseware SmartApp'

This example removes the NAV App with the specified name from the DynamicsNAV server instance's app catalog.

EXAMPLE 2

Get-NAVAppInfo -ServerInstance DynamicsNAV -Name 'Proseware SmartApp' -Version 2.3.4.500 | Unpublish-NAVApp

This example removes the NAV App returned from the Get-NAVAppInfo cmdlet from the DynamicsNAV server instance's app catalog.

EXAMPLE 3

Unpublish-NAVApp -ServerInstance DynamicsNAV -Path '.\Proseware SmartApp.navx'

This example removes the NAV App at the provided path from the DynamicsNAV server instance's app catalog.

Parameters

-Name

Specifies the name of the NAV App to be unpublished.

The results must return only a single NAV App to successfully unpublished.

Type:String
Position:20
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Path

Specifies the path to a NAV App Package file that you want to unpublish.

Type:String
Position:20
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Publisher

Specifies the publisher of the NAV App to be unpublished.

The results must return only a single NAV App to successfully unpublish.

Type:String
Position:21
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ServerInstance

Specifies the Microsoft Dynamics NAV Server instance that the NAV App will be unpublished from, such as DynamicsNAV90.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Version

Specifies the version of the NAV App to be unpublished.

The results must return only a single NAV App to successfully unpublish.

Type:Version
Position:22
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False