---
updatedAt: 2026-05-28T08:16:45.000Z
agentTools:
  projectIndex: https://docs.scalr.io/llms.txt
---

# Delete environment's tags

This endpoint removes given [tags](/docs/tags-1) from the environment.


# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "TagRelationship": {
        "description": "Represents tags' relationship.",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "tags"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "id"
        ],
        "type": "object"
      },
      "TagRelationshipFieldsetsListingDocument": {
        "description": "Document Listing.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/TagRelationship"
            },
            "type": "array"
          },
          "included": {
            "items": {
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          },
          "links": {
            "additionalProperties": {
              "type": "string"
            },
            "readOnly": true,
            "type": "object"
          },
          "meta": {
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "API-Key": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Scalr IACP API",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "title": "Scalr IACP API",
    "version": "unversioned"
  },
  "openapi": "3.0.0",
  "paths": {
    "/environments/{environment}/relationships/tags": {
      "delete": {
        "description": "This endpoint removes given [tags](/docs/tags-1) from the environment.\n",
        "operationId": "delete_environment_tags",
        "parameters": [
          {
            "description": "The environment whose tags will be deleted.\n",
            "in": "path",
            "name": "environment",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "default": {
                  "$ref": "#/paths/~1workspaces~1{workspace}~1relationships~1tags/post/requestBody/content/application~1vnd.api+json/examples/default"
                }
              },
              "schema": {
                "$ref": "#/components/schemas/TagRelationshipFieldsetsListingDocument"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Success."
          },
          "403": {
            "description": "User unauthorized to perform this action."
          },
          "4XX": {
            "description": "Client error."
          },
          "5XX": {
            "description": "Server error."
          }
        },
        "summary": "Delete environment's tags",
        "tags": [
          "environments"
        ],
        "x-resource": "Environment",
        "x-service": "tf-api"
      }
    },
    "/workspaces/{workspace}/relationships/tags": {
      "post": {
        "description": "This endpoint assigns the list of [tags](tags.html#the-tag-resource) to the workspace.\n",
        "operationId": "add_workspace_tags",
        "parameters": [
          {
            "description": "The workspace to add the tags to.\n",
            "in": "path",
            "name": "workspace",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "default": {
                  "description": "The body must contain a `data` member whose value is an empty array or an array of tag identifier objects.",
                  "value": "{\n  \"data\": [\n    {\n      \"type\": \"tags\",\n      \"id\": \"tag-ttiuc2l4mdd5lf8\"\n    },\n    {\n      \"type\": \"tags\",\n      \"id\": \"tag-ttk084u5h8cajb0\"\n    }\n  ]\n}"
                }
              },
              "schema": {
                "$ref": "#/components/schemas/TagRelationshipFieldsetsListingDocument"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Success."
          },
          "403": {
            "description": "User unauthorized to perform this action."
          },
          "4XX": {
            "description": "Client error."
          },
          "5XX": {
            "description": "Server error."
          }
        },
        "summary": "Add tags to the workspace",
        "tags": [
          "workspaces"
        ],
        "x-resource": "Workspace",
        "x-service": "tf-api"
      }
    }
  },
  "security": [
    {
      "API-Key": []
    }
  ],
  "servers": [
    {
      "url": "https://{Domain}/api/iacp/v3",
      "variables": {
        "Domain": {
          "default": "example.scalr.io",
          "description": "Domain where Scalr is hosted"
        }
      }
    }
  ]
}
```

# Sibling pages

* [List Environments](https://docs.scalr.io/scalr/reference/list_environments.md)
* [Create an Environment](https://docs.scalr.io/scalr/reference/create_environment.md)
* [Delete an Environment](https://docs.scalr.io/scalr/reference/delete_environment.md)
* [Get an Environment](https://docs.scalr.io/scalr/reference/get_environment.md)
* [Update Environment](https://docs.scalr.io/scalr/reference/update_environment.md)
* [List environment's tags](https://docs.scalr.io/scalr/reference/list_environment_tags.md)
* [Replace environment's tags](https://docs.scalr.io/scalr/reference/replace_environment_tags.md)
* [Add tags to the environment](https://docs.scalr.io/scalr/reference/add_environment_tags.md)
* [Lock an Environment](https://docs.scalr.io/scalr/reference/lock_environment.md)
* [Unlock an Environment](https://docs.scalr.io/scalr/reference/unlock_environment.md)