Remove-ITGlueLocation
SYNOPSIS
Deletes one or more locations
SYNTAX
Bulk_Destroy (Default)
Remove-ITGlueLocation [-OrganizationID <Int64>] [-ID <Int64>] [-FilterID <Int64>] [-FilterName <String>]
[-FilterCity <String>] [-FilterRegionID <Int64>] [-FilterCountryID <Int64>] [-FilterOrganizationID <Int64>]
[-FilterPsaIntegrationType <String>] -Data <Object> [-WhatIf] [-Confirm] [<CommonParameters>]
Bulk_Destroy_PSA
Remove-ITGlueLocation [-OrganizationID <Int64>] [-ID <Int64>] [-FilterID <Int64>] [-FilterName <String>]
[-FilterCity <String>] [-FilterRegionID <Int64>] [-FilterCountryID <Int64>] [-FilterOrganizationID <Int64>]
[-FilterPsaID <String>] -FilterPsaIntegrationType <String> -Data <Object> [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
The Set-ITGlueLocation cmdlet deletes one or more specified locations
Examples of JSON objects can be found under ITGlues developer documentation https://api.itglue.com/developer
EXAMPLES
EXAMPLE 1
Remove-ITGlueLocation -OrganizationID 123456 -ID 8765309 -Data $JsonObject
Removes the defined location from the defined organization with the specified JSON object
EXAMPLE 2
Remove-ITGlueLocation -Data $JsonObject
Removes location(s) with the specified JSON object
PARAMETERS
-OrganizationID
The valid organization id in your account
Type: Int64
Parameter Sets: (All)
Aliases: org_id, organization_id
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-ID
Location id
Type: Int64
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-FilterID
Filter by a location id
Type: Int64
Parameter Sets: (All)
Aliases: filter_id
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-FilterName
Filter by a location name
Type: String
Parameter Sets: (All)
Aliases: filter_name
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-FilterCity
Filter by a location city
Type: String
Parameter Sets: (All)
Aliases: filter_city
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-FilterRegionID
Filter by a location region id
Type: Int64
Parameter Sets: (All)
Aliases: filter_region_id
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-FilterCountryID
Filter by a location country id
Type: Int64
Parameter Sets: (All)
Aliases: filter_country_id
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-FilterOrganizationID
Filter by an organization ID
Type: Int64
Parameter Sets: (All)
Aliases: filter_organization_id
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-FilterPsaID
Filter by a psa integration id
Type: String
Parameter Sets: Bulk_Destroy_PSA
Aliases: filter_psa_id
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-FilterPsaIntegrationType
Filter by a psa integration type
Allowed values: ‘manage’, ‘autotask’, ‘tigerpaw’, ‘kaseya-bms’, ‘pulseway-psa’, ‘vorex’
Type: String
Parameter Sets: Bulk_Destroy
Aliases: filter_psa_integration_type
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: Bulk_Destroy_PSA
Aliases: filter_psa_integration_type
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Data
JSON object or array depending on bulk changes or not
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
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
-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
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
N/A
RELATED LINKS
https://celerium.github.io/ITGlue-PowerShellWrapper/site/Locations/Remove-ITGlueLocation.html