Skip to navigation Skip to main content Skip to footer
Docs API CLI
Docs
  • Docs
  • API
  • CLI
Ctrl+K
Start for free Sign in
Theme
  • Control Center
  • Profile
  • Sign out
Sign in Start for free
  • Control Center
  • Profile
  • Sign out
Docs
    Start for free
    1. Docs
    2. Infrastructure
    3. Deployment targets
    4. Dynamic infrastructure
    5. Remove Octopus Target Command

    Remove Octopus Target Command

    Open in Claude
    • Open in Claude
    • Open in ChatGPT
    Edit on GitHub

    Delete target

    Command: Remove-OctopusTarget

    Parameter Value
    -targetIdOrName The Name or Id of the target to delete

    Example:

    PowerShell
    Remove-OctopusTarget -targetIdOrName "My Azure Web Application"
    Use Octopus docs with AI
    • Open this page as markdown
    • Open all docs as markdown

    Navigation

    • Introduction
    • Getting started
    • Octopus Cloud
    • Installation
    • Best Practices
    • Octopus AI
    • Kubernetes
    • Argo CD
    • Infrastructure
      • Overview
      • Deployment targets
        • Deployment targets
        • Counting deployment targets
        • Target tags
        • Octopus Tentacle
          • Octopus Tentacle
          • Windows Tentacle
            • Windows Tentacle
            • Tentacle installation requirements
              • Tentacle installation requirements
              • Legacy Tentacle installation requirements
            • Permissions required for the Tentacle Windows Service
            • Running Tentacle under a specific user account
            • Clustered Listening Tentacles
            • Automating Tentacle installation
            • Polling Tentacles over WebSockets
            • Azure virtual machines
              • Azure virtual machines
              • Installing the Tentacle via DSC in an ARM template
              • Installing the Tentacle VM extension via the Azure Portal
              • Installing the Tentacle VM extension via the classic Azure Portal
              • Installing the Tentacle VM extension via PowerShell
              • Installing the Tentacle VM extension via the Azure CLI
              • Tentacle VM extension configuration structure
              • Diagnosing Tentacle VM extension issues
          • Linux Tentacle
          • Tentacle communication modes
          • Octopus Tentacle in a Container
          • Polling Tentacles over Standard HTTPS Port
          • Agent vs Agentless
          • Troubleshooting Tentacles
            • Troubleshooting Tentacles
            • Troubleshooting Listening Tentacles
            • Troubleshooting Polling Tentacles
        • Linux targets
          • Linux targets
          • SSH target
          • SSH target requirements
          • SSH deployments
          • Sudo commands
        • Amazon ECS cluster
        • Azure targets
          • Azure targets
          • Azure Service Fabric cluster targets
          • Azure Web App targets
        • Offline package drop
        • Cloud regions
        • Cloud Target Discovery
        • Dynamic infrastructure
          • Dynamic infrastructure
          • Create AWS account command
          • Create Azure Service Principal account command
          • Create token account command
          • Create username/password command
          • Create Azure Web App target command
          • Create Azure Service Fabric target command
          • Create Kubernetes Target Command
          • New Octopus Target Command
          • Remove Octopus Target Command
        • Machine policies
        • Proxy support
      • Environments
        • Environments
        • Environment recommendations
        • Environment state
      • Accounts
        • Accounts
        • Azure
        • AWS accounts
        • Google cloud accounts
        • SSH key pair account
        • Token account
        • Username and password accounts
        • OpenID Connect
      • Workers
        • Workers
        • Built-in Worker
        • Kubernetes Worker
          • Kubernetes Worker
          • Storage
          • Cluster Configuration
          • Scaling Behavior
          • Automated Installation
          • Troubleshooting
        • Worker pools
        • Dynamic Worker pools
          • Dynamic Worker pools
          • Ubuntu 22.04 End-of-life
          • Windows 2022 End-of-life
        • Worker Tools, Versioning and Caching
      • Git credentials
        • Git credentials
        • SSH known hosts
      • Signing Keys
      • Ephemeral Environments
    • Platform Hub
    • Packaging applications
    • Projects
    • Tenants
    • Releases
    • Deployments
    • Runbooks
    • Feature Flags
    • Tasks
    • Approvals
    • Insights
    • Octopus REST API
    • Administration
    • Security
    • Support
    • Credits
    • GitHub Organizations
    • Deprecations
    • Search
    On this page
    1. Delete target

    Was this page helpful?

    Thanks for your feedback!

    Last updated Jan 1, 2023

    Copyright © 2026 Octopus Deploy

    • Privacy
    • GDPR
    • Terms
    • Status
    • Support

      No results for .

      Navigate Select Esc Close