Skip to content

Remove GSharedContact

Spencer Varney edited this page Dec 9, 2016 · 4 revisions

Remove-GSharedContact

SYNOPSIS

Delete a shared contact.

SYNTAX

Remove-GSharedContact [-ContactObj] <Contact> [-Force] [-Domain <String>] [-GAuthId <String>] [-WhatIf]
 [-Confirm]

DESCRIPTION

Delete a shared contact.

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\> Remove-GSharedContact -ContactObj $SomeContactObject

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

---------- EXAMPLE 2 ----------

PS C:\> Get-GSharedContact -Id $SomeIdString | Remove-GSharedContact

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-ContactObj

A Google API Contact object to be deleted.

Type: Contact
Parameter Sets: (All)
Aliases: 

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

-Force

A switch to run the cmdlet without prompting

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Domain

The target domain for this shared contacts cmdlet.

Type: String
Parameter Sets: (All)
Aliases: 

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

-GAuthId

The GAuthId representing the gShell auth credentials this cmdlet should use to run.

Type: String
Parameter Sets: (All)
Aliases: 

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

INPUTS

Google.Apis.admin.Sharedcontacts.sharedcontacts_v3.Data.Contact

A Google API Contact object to be deleted.

System.String

The target domain for this shared contacts cmdlet.

OUTPUTS

NOTES

Part of the gShell Project, relating to the Google Shared Contacts API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally