Skip to content

Unpublish-Tweet

SYNOPSIS

Delete the specified Tweet.

SYNTAX

ById (Default)

Unpublish-Tweet -Id <String> [-Confirm] [-WhatIf] [<CommonParameters>]

ByTweet

Unpublish-Tweet -Tweet <Tweet> [-Confirm] [-WhatIf] [<CommonParameters>]

DESCRIPTION

Delete the specified Tweet.

The authenticating user must be the author of the specified Tweet.

EXAMPLES

Example 1

PS > Unpublish-Tweet -Id 1399711831015428097
Confirm
Are you sure you want to perform this action?
Performing the operation "Deleting Tweet" on target "Id: 1399711831015428097".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y

Delete the specified Tweet.

Example 2

PS > Get-Tweet -Id 1399712801862598661 | Unpublish-Tweet
Confirm
Are you sure you want to perform this action?
Performing the operation "Deleting Tweet" on target "Id: 1399712801862598661, CreatedAt: 6/1/2021 1:01:52 PM".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y

Delete the specified Tweet.

PARAMETERS

-Id

The id of the Tweet.

Type: System.String
Parameter Sets: ById
Aliases:

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

-Tweet

The Tweet object to delete.

Type: BluebirdPS.APIV2.TweetInfo.Tweet
Parameter Sets: ByTweet
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.

INPUTS

System.String

BluebirdPS.APIV2.TweetInfo.Tweet

OUTPUTS

None

NOTES

Online Version

Get-Tweet

Publish-Tweet

API Documentation - DELETE /2/tweets/:id