# Remove-RASTemplateVersion

## NAME

Remove-RASTemplateVersion

## SYNOPSIS

Removes a Template version.

## SYNTAX

**Remove-RASTemplateVersion** -[ObjType](#objtype) {VDITemplateVersion | RDSTemplateVersion | AVDTemplateVersion} -[TemplateId](#templateid-string) *(uint)* \[[Id](#id-string) *(uint)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Remove-RASTemplateVersion** \[-[InputObject](#inputobject)] *(*[*TemplateVersion*](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/templateversion)*)* -[ObjType](#objtype) {VDITemplateVersion | RDSTemplateVersion | AVDTemplateVersion} -[TemplateId](#templateid-string) *(uint)* \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Remove-RASTemplateVersion** \[\[-[SiteId](#siteid-string)] *(uint)*] -[ObjType](#objtype) {VDITemplateVersion | RDSTemplateVersion | AVDTemplateVersion} -[TemplateId](#templateid-string) *(uint)* \[[Name](#name-string) *(string)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Removes a Template version.

## PARAMETERS

## InputObject ([TemplateVersion](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/templateversion))

An object of type template version representing a RAS Template Version.

The object is obtained using the Get-RASTemplateVersion cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

## Name (string)

The Name of the Template Version.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SiteId (uint)

The Id of the site which contains the Template Version.

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Id (uint)

The ID of the Template Version.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TemplateId (uint)

The ID of the Template that contains the Template Version.

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ObjType ([TemplateVersion](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/templateversion))

The Template Type.

Possible values: VDITemplateVersion, RDSTemplateVersion, AVDTemplateVersion

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

(CommonParameters)

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation. 
```

## INPUTS

[TemplateVersion](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/templateversion)

## OUTPUTS

-none-

## EXAMPLES

**---------- EXAMPLE 1 ----------**

Remove-RASTemplateVersion -ObjType AVDTemplate -TemplateId 1107548564 -Name "Version 1"

Removes the specified AVD Template Version.\
\&#xNAN;**---------- EXAMPLE 2 ----------**

Remove-RASTemplateVersion -ObjType VDITemplate -TemplateId 1107548564 -Id 1

Modifies the specified VDI Template Version.

## RELATED LINKS

* [Get-RASTemplateVersion](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rastemplateversion)
* [Set-RASTemplateVersion](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-rastemplateversion)
