> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell/de/powershell-commands/remove-rdmmessage.md).

# Remove-RDMMessage

### Übersicht

Eine sichere Nachricht entfernen.

### Syntax

#### ID

```
Remove-RDMMessage [-ID] <guid> [-Force] [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm]
 [<CommonParameters>]
```

#### Message

```
Remove-RDMMessage [-Message] <DataSourceMessage> [-Force] [-ForcePromptAnswer <DialogResult[]>]
 [-WhatIf] [-Confirm] [<CommonParameters>]
```

### Beschreibung

Eine sichere Nachricht entfernen. Die Datenquelle muss ein Devolutions Server oder eine Devolutions Cloud sein.

### Beispiele

#### Beispiel 1

```powershell
PS C:\> Receive-RDMMessage -SentOn -Custom -Before 2021/12/31 | Remove-RDMMessage -Force
```

Löscht alle Nachrichten, die vor dem 01.01.2022 gesendet wurden (der Before-Wert ist inklusiv). Es erfolgt keine Bestätigungsaufforderung.

#### Beispiel 2

```powershell
PS C:\> $messages = Receive-RDMMessage -SentOn Today; $messages | Where-Object -Property FromName -ne 'First Last' | Remove-RDMMessage -Force
```

Der Benutzer ruft alle heute empfangenen Nachrichten ab. Er liest sie alle. Er entscheidet, nur die von 'First Last' gesendeten Nachrichten zu behalten und den Rest ohne Bestätigungsaufforderung zu löschen.

#### Beispiel 3

```powershell
PS C:\> Receive-RDMMessage | Remove-RDMMessage -Confirm
```

Der Benutzer wird aufgefordert, jede Nachricht einzeln zu löschen.

### Parameter

#### -Confirm

Fordert Sie vor dem Ausführen des Cmdlets zur Bestätigung auf.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Force

Umgeht die Bestätigung zum Fortfahren. Wenn der Schalter DownloadAttachment vorhanden ist, werden die Anhänge aller zurückgegebenen Nachrichten heruntergeladen.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ForcePromptAnswer

Ein mit Vorsicht zu verwendender Schalter. Er beantwortet automatisch Aufforderungen mit Yes/No-, Yes/No/Cancel- oder OK/Cancel-Fragen. Bei mehreren Aufforderungen können mehrere Werte an diesen Parameter übergeben werden. Hier sind die zulässigen Werte:

* Yes: Nimmt die Aufforderung an. Deckt die Werte OK und Automatic ab.
* No: Lehnt die Yes/No/Cancel-Aufforderung ab. "Cancel" ist die Ersatzoption, wenn es keine "No"-Option gibt.
* Cancel: Bricht die Yes/No/Cancel-Aufforderung ab. "No" ist die Ersatzoption, wenn es keine "Cancel"-Option gibt.

```yaml
Type: System.Windows.Forms.DialogResult[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ID

ID der zu löschenden Nachricht.

```yaml
Type: System.Nullable`1[System.Guid]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ID
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Message

Zu löschende Nachrichten.

```yaml
Type: Devolutions.RemoteDesktopManager.Business.Messages.DataSourceMessage
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Message
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -WhatIf

Zeigt, was passieren würde, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### CommonParameters

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction und -WarningVariable. Weitere Informationen finden Sie unter [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Eingaben

#### Devolutions.RemoteDesktopManager.Business.Messages.DataSourceMessage

Die von Receive-RDMMessage erhaltene Nachricht kann per Pipe an den Parameter Message übergeben werden.

### Hinweise

Für weitere Informationen geben Sie "Get-Help Remove-RDMMessage -detailed" ein. Für technische Informationen geben Sie "Get-Help Remove-RDMMessage -full" ein.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell/de/powershell-commands/remove-rdmmessage.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
