--- Category: Commands external help file: Notion-help.xml Module Name: Notion online version: https://developers.notion.com/reference/update-property-schema-object schema: 2.0.0 Type: Command --- # Remove-NotionDatabaseProperty ## SYNOPSIS Removes a specified property from a Notion database. ## SYNTAX ``` Remove-NotionDatabaseProperty [-DatabaseId] -Property [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION The Remove-NotionDatabaseProperty function removes a property from a Notion database by setting the property to null. It uses the Notion API to update the database. ## EXAMPLES ### EXAMPLE 1 ``` Remove-NotionDatabaseProperty -DatabaseId "12345678-1234-1234-1234-1234567890ab" -Property "PropertyName" ``` This example removes the property named "PropertyName" from the specified Notion database. ### EXAMPLE 2 ``` (Get-NotionDatabase -DatabaseId "12345678-1234-1234-1234-1234567890ab").Properties.Values.Name | Remove-NotionDatabaseProperty -DatabaseId "12345678-1234-1234-1234-1234567890ab" ``` This example removes *all* properties by name from the specified Notion database using the pipeline. (Use with care!) ### EXAMPLE 3 ``` (Get-NotionDatabase -DatabaseId "12345678-1234-1234-1234-1234567890ab").Properties.Values.Id | Remove-NotionDatabaseProperty -DatabaseId "12345678-1234-1234-1234-1234567890ab" ``` This example removes *all* properties by Id from the specified Notion database using the pipeline. (Use with care!) ### EXAMPLE 4 ``` @("PropertyName1", "PropertyName2") | Remove-NotionDatabaseProperty -DatabaseId "12345678-1234-1234-1234-1234567890ab" ``` This example removes multiple properties from the specified Notion database using the pipeline. ## PARAMETERS ### -DatabaseId The ID of the Notion database from which the property will be removed. ```yaml Type: String Parameter Sets: (All) Aliases: Id Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -ProgressAction {{ Fill ProgressAction Description }} ```yaml Type: ActionPreference Parameter Sets: (All) Aliases: proga Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Property The ID or name of the property to remove from the Notion database. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` ### -Confirm Prompts you for confirmation before running the cmdlet. ```yaml 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. ```yaml 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](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS ## OUTPUTS ### notion_database ## NOTES ## RELATED LINKS [https://developers.notion.com/reference/update-property-schema-object](https://developers.notion.com/reference/update-property-schema-object)