Skip to content

Remove-DbaDatabase - no leftovers must stay behind #8009

@olegstrutinskii

Description

@olegstrutinskii

Summarize Functionality

Let Remove-DbaDatabase not just remove the database but and delete: files, backup, and restore history.

Is there a command that is similiar or close to what you are looking for?

No

Technical Details

Replicate option Remove behavior from context menu SSMS for a database.

  • Delete backup and restore history
  • Delete files from SQL Server disk
  • [:heavy_check_mark:] Drop all connections

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions