< Back
Drop-mjInfluxDB
Post
NAME Drop-mjInfluxDB
SYNOPSIS
Drops an InfluxDB Database
Written by Ispep
www.automatiserar.se
SYNTAX
Drop-mjInfluxDB [-InfluxServer] <String> [-databaseNames] <Array> [[-https] <Boolean>] [[-port] <Int32>]
[-confirmRemove] [<CommonParameters>]
DESCRIPTION
This command will drop an array of INFLUX databases. It will first check if the database exist.
it supports database arrays if needed.
PARAMETERS
-InfluxServer <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-databaseNames <Array>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-https <Boolean>
Required? false
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-port <Int32>
Required? false
Position? 4
Default value 8086
Accept pipeline input? false
Accept wildcard characters? false
-confirmRemove [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>#
Drop-mjInfluxDB -InfluxServer MyInfluxServer -databaseName "Automatiserarse","demodemo"
DatabasesToRemove : {Automatiserarse, demodemo}
RemovedItems : {Automatiserarse, demodemo}
RemovedItemCount : 2
Version : 1
HttpMode : http
NotFoundDatabases : {}
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>#
Drop-mjInfluxDB -InfluxServer MyInfluxServer -databaseName "Automatiserarse","demodemo" -confirmRemove -Verbose
DatabasesToRemove : {Automatiserarse, demodemo}
RemovedItems : {Automatiserarse, demodemo}
RemovedItemCount : 2
Version : 1
HttpMode : http
NotFoundDatabases : {}
RELATED LINKS
SYNOPSIS
Drops an InfluxDB Database
Written by Ispep
www.automatiserar.se
SYNTAX
Drop-mjInfluxDB [-InfluxServer] <String> [-databaseNames] <Array> [[-https] <Boolean>] [[-port] <Int32>]
[-confirmRemove] [<CommonParameters>]
DESCRIPTION
This command will drop an array of INFLUX databases. It will first check if the database exist.
it supports database arrays if needed.
PARAMETERS
-InfluxServer <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-databaseNames <Array>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-https <Boolean>
Required? false
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-port <Int32>
Required? false
Position? 4
Default value 8086
Accept pipeline input? false
Accept wildcard characters? false
-confirmRemove [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>#
Drop-mjInfluxDB -InfluxServer MyInfluxServer -databaseName "Automatiserarse","demodemo"
DatabasesToRemove : {Automatiserarse, demodemo}
RemovedItems : {Automatiserarse, demodemo}
RemovedItemCount : 2
Version : 1
HttpMode : http
NotFoundDatabases : {}
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>#
Drop-mjInfluxDB -InfluxServer MyInfluxServer -databaseName "Automatiserarse","demodemo" -confirmRemove -Verbose
DatabasesToRemove : {Automatiserarse, demodemo}
RemovedItems : {Automatiserarse, demodemo}
RemovedItemCount : 2
Version : 1
HttpMode : http
NotFoundDatabases : {}
RELATED LINKS