Remove Contact - tsubotitsch/Brevo GitHub Wiki

Remove-Contact

SYNOPSIS

Removes a contact from the system using the specified identifier.

SYNTAX

Remove-Contact [-Identifier] <String> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The Remove-Contact function deletes a contact from the system based on the provided identifier. The identifier can be an email_id (for EMAIL), phone_id (for SMS), or contact_id (for the ID of the contact).

EXAMPLES

EXAMPLE 1

Remove-Contact -Identifier "contact_id_12345"
This command removes the contact with the ID "contact_id_12345".

EXAMPLE 2

Remove-Contact -Identifier "[email protected]"
This command removes the contact with the email "[email protected]".

PARAMETERS

-Identifier

The identifier of the contact to be removed. This can be an email_id, phone_id, or contact_id.

Type: String
Parameter Sets: (All)
Aliases: Id

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

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
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

OUTPUTS

NOTES

This function supports ShouldProcess for safety, and has a high confirm impact.

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️