---
updatedAt: 2025-12-25T22:56:50.000Z
agentTools:
  projectIndex: https://integrate.route4me.com/llms.txt
---

# Delete User

Delete the sub-user by specifying the path parameter ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Team Management API",
    "description": "Team Management API",
    "contact": {
      "name": "Route4Me",
      "url": "docs.route4me.com",
      "email": "support@route4me.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "v5.0"
  },
  "servers": [
    {
      "url": "https://wh.route4me.com/modules/",
      "description": "Route4Me API V5"
    },
    {
      "url": "https://wh-staging-yx2ian2bajaskas.routeml.com/modules/",
      "description": "Route4Me Staging API V5"
    }
  ],
  "paths": {
    "/api/v5.0/team/users/{id}": {
      "delete": {
        "tags": [
          "Default"
        ],
        "summary": "Delete the sub-user by ID.",
        "description": "Delete the sub-user by specifying the path parameter ID.",
        "operationId": "f49541a8c56bec354402f13f38a831b9",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "User ID.",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseMemberResource"
                }
              }
            }
          },
          "406": {
            "$ref": "#/components/responses/Response406"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BaseMemberResource": {
        "properties": {
          "member_first_name": {
            "type": "string",
            "example": "Hubert"
          },
          "member_last_name": {
            "type": "string",
            "example": "Wolfeschlegelsteinhausenbergerdorff"
          },
          "member_email": {
            "type": "string",
            "format": "email",
            "example": "mstage02@route4me.com"
          },
          "member_company": {
            "type": "string",
            "example": "Route4me"
          },
          "member_type": {
            "type": "string",
            "example": "PRIMARY_ACCOUNT"
          },
          "OWNER_MEMBER_ID": {
            "type": "integer"
          },
          "member_phone": {
            "type": "string",
            "example": "+249999999999"
          },
          "date_of_birth": {
            "type": "string",
            "format": "date",
            "example": "2025-09-03"
          },
          "user_reg_state_id": {
            "type": "integer",
            "example": null,
            "nullable": true
          },
          "user_reg_country_id": {
            "type": "integer",
            "example": 220
          },
          "DriverHourlyRate": {
            "type": "number",
            "example": null,
            "nullable": true
          },
          "HIDE_ROUTED_ADDRESSES": {
            "type": "boolean",
            "example": false
          },
          "HIDE_VISITED_ADDRESSES": {
            "type": "boolean",
            "example": false
          },
          "HIDE_NONFUTURE_ROUTES": {
            "type": "boolean",
            "example": false
          },
          "READONLY_USER": {
            "type": "boolean",
            "example": false
          },
          "SHOW_SUSR_ADDR": {
            "type": "boolean",
            "example": false
          },
          "SHOW_SUSR_ORDERS": {
            "type": "boolean",
            "example": false
          },
          "SHOW_ALL_DRIVERS": {
            "type": "boolean",
            "example": false
          },
          "SHOW_ALL_VEHICLES": {
            "type": "boolean",
            "example": false
          },
          "display_max_routes_future_days": {
            "type": "boolean",
            "nullable": true
          },
          "vendor_id": {
            "type": "integer",
            "example": null,
            "nullable": true
          },
          "driving_rate": {
            "type": "number",
            "example": null,
            "nullable": true
          },
          "working_rate": {
            "type": "number",
            "example": null,
            "nullable": true
          },
          "mile_rate": {
            "type": "number",
            "example": null,
            "nullable": true
          },
          "idling_rate": {
            "type": "number",
            "example": null,
            "nullable": true
          },
          "timezone": {
            "type": "string",
            "example": "America/New_York"
          },
          "member_id": {
            "type": "integer",
            "example": 1189067
          },
          "member_picture": {
            "type": "string",
            "format": "uri",
            "example": "https://apps-static.routeml.com/uploads/...png"
          },
          "authentication_count": {
            "type": "integer",
            "example": 3634
          },
          "timestamp_last_active": {
            "type": "integer",
            "example": 1756891716
          },
          "timestamp_added": {
            "type": "integer",
            "example": 1688733732
          },
          "last_login_device": {
            "type": "string",
            "example": "web"
          },
          "optimization_profile_id": {
            "type": "integer",
            "example": null,
            "nullable": true
          },
          "optimization_profile_name": {
            "type": "string",
            "example": null,
            "nullable": true
          },
          "allowed_submember_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "PRIMARY_ACCOUNT",
                "SUB_ACCOUNT_ADMIN",
                "SUB_ACCOUNT_REGIONAL_MANAGER",
                "SUB_ACCOUNT_DISPATCHER",
                "SUB_ACCOUNT_PLANNER",
                "SUB_ACCOUNT_DRIVER",
                "SUB_ACCOUNT_ANALYST",
                "SUB_ACCOUNT_VENDOR",
                "SUB_ACCOUNT_CUSTOMER_SERVICE",
                "SUB_ACCOUNT_SORTER",
                "SUB_ACCOUNT_CUSTOMER_SUPPORT"
              ]
            },
            "example": [
              "SUB_ACCOUNT_DRIVER",
              "SUB_ACCOUNT_DISPATCHER"
            ]
          },
          "can_edit": {
            "type": "boolean",
            "example": false
          },
          "can_delete": {
            "type": "boolean",
            "example": false
          },
          "custom_data": {
            "type": "object",
            "example": "{'key': 'value'}"
          },
          "territories": {
            "type": "array",
            "items": {
              "properties": {
                "id": {
                  "type": "string"
                },
                "permission": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "member_type_title": {
            "type": "string",
            "example": "Account Owner"
          },
          "permissions": {
            "type": "array",
            "items": {
              "properties": {
                "id": {
                  "type": "string",
                  "example": "e5c5e8fc"
                },
                "title": {
                  "type": "string",
                  "example": "User Permissions"
                },
                "type": {
                  "type": "string",
                  "example": "radio"
                },
                "options": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "value": {
                        "type": "string",
                        "example": "a8936352"
                      },
                      "title": {
                        "oneOf": [
                          {
                            "type": "string",
                            "example": "Travel-Only"
                          },
                          {
                            "type": "boolean",
                            "example": true
                          }
                        ]
                      }
                    },
                    "type": "object"
                  }
                },
                "value": {
                  "type": "string",
                  "example": "26f56914"
                },
                "subtitle": {
                  "type": "string",
                  "example": "Edit or delete Proof of Visit notes",
                  "nullable": true
                },
                "label": {
                  "type": "string",
                  "example": "",
                  "nullable": true
                }
              },
              "type": "object"
            }
          },
          "facility_ids": {
            "type": "array",
            "items": {
              "description": "A hexadecimal UUID string",
              "type": "string",
              "pattern": "^[0-9a-fA-F]{32}$"
            },
            "example": [
              "B97C3EEE6997A58B70C06E60EA0E5CF9"
            ]
          },
          "facilities": {
            "type": "string",
            "nullable": true
          },
          "owner_member_name": {
            "type": "string",
            "example": null,
            "nullable": true
          }
        },
        "type": "object"
      },
      "ValidationErrorResponse": {
        "properties": {
          "status": {
            "type": "boolean"
          },
          "code": {
            "type": "integer"
          },
          "exit_code": {
            "type": "integer"
          },
          "error": {
            "type": "string"
          },
          "messages": {
            "properties": {
              "validated_property": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "type": "object"
          },
          "validation_errors": {
            "properties": {
              "validated_property": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      }
    },
    "responses": {
      "Response406": {
        "description": "Unprocessable Content",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ValidationErrorResponse"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyQueryAuth": {
        "type": "apiKey",
        "description": "Api Key used. Example: \"api_key={token}\"",
        "name": "api_key",
        "in": "query"
      },
      "BearerAuth": {
        "type": "http",
        "description": "JWT Authorization header using the Bearer scheme. Api Key used. Example: \"Authorization: Bearer {token}\"",
        "bearerFormat": "JWT",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "ApiKeyQueryAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Default",
      "description": "Default"
    }
  ]
}
```