---
title: "Bỏ chia sẻ mẫu với một người dùng"
method: DELETE
path: "/me/excel/templates/{templateId}/shares/{userName}"
tags: ["MyExcelTemplates"]
---

# Bỏ chia sẻ mẫu với một người dùng

`DELETE /me/excel/templates/{templateId}/shares/{userName}`

## Request

- Base URL: `https://api.fireant.vn`
- URL: `https://api.fireant.vn/me/excel/templates/{templateId}/shares/{userName}`
- Auth: OAuth 2
  - Implicit: `https://accounts.fireant.vn/connect/authorize`
  - Scopes: `user-data-write`
- TypeScript: <https://skmtc.dev/fireant/apis/fireant-restful-api/docs/me/excel/templates/:templateId/shares/:userName/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `templateId` integer, required
- `userName` string, required

## Response `200`

Danh sách chia sẻ còn lại

- FireAntApiModelsExcelTemplatesExcelTemplateShareItem[]
  - `userName` string: Tên đăng nhập
  - `name` string: Tên hiển thị (null nếu không tra được)
  - `avatar` string: URL ảnh đại diện (null nếu không tra được)
  - `sharedDate` string, date-time: Thời điểm chia sẻ

## Other responses

- `403`: Không có quyền
- `404`: Không tồn tại

## Changes

- **2026-10-10** `300cfd8b632c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fireant/apis/fireant-restful-api/changes/me/excel/templates/:templateId/shares/:userName/delete.md)

---

[API](https://skmtc.dev/fireant/apis/fireant-restful-api.md) - [All operations](https://skmtc.dev/fireant/apis/fireant-restful-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireant/apis/fireant-restful-api/revisions/c9b3aa855f95?raw)
