Unpublish-TwitterDM
SYNOPSIS
Deletes the direct message specified by the DirectMessageId parameter.
SYNTAX
ById (Default)
Unpublish-TwitterDM -Id <String> [-WhatIf] [-Confirm] [<CommonParameters>]
ByDM
Unpublish-TwitterDM -TwitterDM <DirectMessage> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Deletes the direct message specified by the DirectMessageId parameter.
The authenticating user must be the recipient of the specified direct message. Direct Messages are only removed from the interface of the user context provided. Other members of the conversation can still access the Direct Messages.
EXAMPLES
Example 1
PS > Unpublish-TwitterDM -DirectMessageId 9876543210123
Deletes the direct message specified by the DirectMessageId parameter.
PARAMETERS
-Id
The ID of the direct message.
Type: System.String
Parameter Sets: ById
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-TwitterDM
A DirectMessage object retrieved from Get-TwitterDM.
Type: BluebirdPS.APIV1.DirectMessage
Parameter Sets: ByDM
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
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.