# Remove-RASSchedule

## NAME

Remove-RASSchedule

## SYNOPSIS

Removes a Schedule.

## SYNTAX

**Remove-RASSchedule** \[-[Id](#Id)] _\<uint>_ -[ObjType](#ObjType) {RDS | VDI | AVD} \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Remove-RASSchedule** \[-[InputObject](#InputObject)] _<_[_Schedule_](../classes-and-enumerations/schedule)_>_ \[_<_[_CommonParameters_](#CommonParameters)_>_]

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

## DESCRIPTION

Removes a Schedule property.

## PARAMETERS

-**SiteId \<uint>**\
Site ID from which to delete 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
```

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

```
        Required?                    true

        Position?                    0

        Default value                

        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
```

-**InputObject <**[**Schedule**](../classes-and-enumerations/schedule)**>**\
An object of type Schedule representing the target scheduler job.

To obtain the object, use the Get-RASSchedule command.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        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

[Schedule](../classes-and-enumerations/schedule)

## OUTPUTS

-none-

## EXAMPLES

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

Remove-RASSchedule "My Schedule" -ObjType RDS

Removes the Schedule property specified by name. To remove a Schedule property from a specific site, specify the -SiteId parameter.\
&#xNAN;**---------- EXAMPLE 2 ----------**

Remove-RASSchedule -Id 10 -ObjType RDS

Removes the Schedule property specified by ID. To obtain the group ID, use the Get-RASSchedule cmdlet.\
&#xNAN;**---------- EXAMPLE 3 ----------**

Get-RASSchedule -Id 10 | Remove-RASSchedule

Removes the Schedule property, which is identified by the object obtained from the pipeline output.

## RELATED LINKS

* [New-RASSchedule](new-rasschedule)
* [Set-RASSchedule](set-rasschedule)
* [Get-RASSchedule](get-rasschedule)
* [Get-RASScheduleMessage](get-rasschedulemessage)
