# Remove-RASScheduleTarget

## NAME

Remove-RASScheduleTarget

## SYNOPSIS

Removes a Schedule.

## SYNTAX

**Remove-RASScheduleTarget** \[-[Id](#Id)] _\<uint>_ -[ObjType](#ObjType) {RDS | VDI | AVD} -[TargetID](#TargetID) _\<uint>_ \[-[TargetType](#TargetType) {Host | HostPool}] \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Remove-RASScheduleTarget** \[-[Id](#Id)] _\<uint>_ -[ObjType](#ObjType) {RDS | VDI | AVD} -[PoolId](#PoolId) _\<uint>_ \[-[GuestName](#GuestName) _\<string>_] \[-[GUID](#GUID) _\<string>_] \[-[HostAzureID](#HostAzureID) _\<string>_] \[-[TargetType](#TargetType) {Host | HostPool}] \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Remove-RASScheduleTarget** \[-[Name](#Name)] _\<string>_ \[\[-[SiteId](#SiteId)] _\<uint>_] -[ObjType](#ObjType) {RDS | VDI | AVD} -[TargetID](#TargetID) _\<uint>_ \[-[TargetType](#TargetType) {Host | HostPool}] \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Remove-RASScheduleTarget** \[-[Name](#Name)] _\<string>_ \[\[-[SiteId](#SiteId)] _\<uint>_] -[ObjType](#ObjType) {RDS | VDI | AVD} -[PoolId](#PoolId) _\<uint>_ \[-[GuestName](#GuestName) _\<string>_] \[-[GUID](#GUID) _\<string>_] \[-[HostAzureID](#HostAzureID) _\<string>_] \[-[TargetType](#TargetType) {Host | HostPool}] \[_<_[_CommonParameters_](#CommonParameters)_>_]

## DESCRIPTION

Removes a Schedule property.

## PARAMETERS

-**Name \<string>**\
Scheduler job name.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**SiteId \<uint>**\
Site ID to modify the schedule job.

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Id \<uint>**\
Scheduler job ID.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**ObjType <**[**ScheduleObjType**](../classes-and-enumerations/scheduleobjtype)**>**\
Schedule object type.

Possible values: RDS, VDI, AVD

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**TargetType <**[**ScheduleTargetType**](../classes-and-enumerations/scheduletargettype)**>**\
Schedule target type.

Possible values: Host, HostPool

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**TargetID \<uint>**\
The target RD Session Host server or server group Ids depending on the TargetType parameter.

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**PoolId \<uint>**

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**GUID \<string>**

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**GuestName \<string>**

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**HostAzureID \<string>**

```
        Required?                    false

        Position?                    named

        Default value                

        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

-none-

## OUTPUTS

-none-

## EXAMPLES

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

Remove-RASScheduleTarget -ObjType VDI -Id 1 -TargetID 1

Removes the specified schedule target id to the schedule item specified by id.\
&#xNAN;**---------- EXAMPLE 2 ----------**

Remove-RASScheduleTarget -ObjType VDI -Id 1 -PoolID 1 -GUID "SampleGUID" -GuestName "SampleGuestName"

Removes the specified schedule target native host to the schedule item specified by id.\
&#xNAN;**---------- EXAMPLE 3 ----------**

Remove-RASScheduleTarget -ObjType VDI -Id 1 -PoolID 1 -HostAzureID "SampleAzureID"

Removes the specified azure schedule target native host to the schedule item specified by id.

## RELATED LINKS

* [Add-RASScheduleTarget](add-rasscheduletarget)
* [Get-RASScheduleTarget](get-rasscheduletarget)
