Remove-Table

Removes a table from a database.

Syntax

Remove-Table [-Name] <String> [[-SchemaName] <String>] [<CommonParameters>]

Description

You can't get any of the data back, so be careful.

Parameters

Name Type Description Required? Pipeline Input Default Value
Name String

The name of the table where the column should be removed.

true false
SchemaName String

The schema of the table where the column should be added. Default is dbo.

false false dbo

EXAMPLE 1

Remove-Table -Name 'Coffee'

Removes the Coffee table from the database.