# Remove-AmsActiveDirectoryJitGroupCreationRule

## SYNOPSIS

Deletes a just-in-time Active Directory group creation rule

## SYNTAX

```
Remove-AmsActiveDirectoryJitGroupCreationRule -Id <String> [-Force] [<CommonParameters>]
```

## DESCRIPTION

This cmdlet deletes a just-in-time Active Directory group creation rule by its unique ID

## EXAMPLES

### Example 1

```
PS C:\> Remove-AmsActiveDirectoryJitGroupCreationRule -Id "12345678-1234-1234-1234-123456789012"
```

Deletes the JIT group creation rule with the specified ID

## PARAMETERS

### -Force

Forces the command to run without asking for user confirmation

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -Id

The unique ID of the rule

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.String

## OUTPUTS

### Lithnet.AccessManager.PowerShell.AdJitCreationRulePSObject

## NOTES

## RELATED LINKS


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lithnet.io/ams/help-and-support/powershellmodule/remove-amsactivedirectoryjitgroupcreationrule.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
