> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.sesametime.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete office

> Delete an office of the company, archived or not. The main office of the company and an office whose planner has shift templates cannot be deleted. Employees and roles of the office are cleaned up asynchronously and its locations are unassigned.

Version:
v4


## OpenAPI

````yaml openapi-v2.json DELETE /core/v4/offices/{officeId}
openapi: 3.0.0
info:
  title: Sesame Public API v2
  description: >-
    Public API v2 — additive surface `/public/{context}/v{N}`,
    endpoint-versioned from v4
  version: 1.0.0
servers:
  - url: https://api.sesamehr.com
    description: Production
security:
  - Bearer: []
paths:
  /core/v4/offices/{officeId}:
    delete:
      tags:
        - Offices
      summary: Delete office
      description: >-
        Delete an office of the company, archived or not. The main office of the
        company and an office whose planner has shift templates cannot be
        deleted. Employees and roles of the office are cleaned up asynchronously
        and its locations are unassigned.
      operationId: DeleteOffice
      parameters:
        - name: officeId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: The office was deleted.
        '401':
          description: Missing or invalid API key
        '403':
          description: API consumer lacks permission over the requested resource
        '422':
          description: Validation error
components:
  securitySchemes:
    Bearer:
      type: http
      description: 'Sesame Public API consumer token (Authorization: Bearer <token>)'
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.