Skip to main content
skill CX Codex

web-unpublish — Claude Code skill: remove a 1C web publication

Deletes a 1C web publication from Apache: the block in httpd.conf and the publish/{appname} directory. Useful when a database should stop being reachable over the web.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skills
Open on GitHub

What web-unpublish does

The skill takes down one 1C publication or all of them at once. It cuts the publication block out of httpd.conf and removes the publish/{appname} directory inside Apache. When no other publications are left, it also drops the global 1C block and stops Apache. The --all flag clears everything in one go.

Under the hood there is a single PowerShell script, scripts/web-unpublish.ps1, invoked through powershell.exe -NoProfile -File. The Apache path comes from .v8-project.json in the project root, field webPath; without it the default is tools/apache24. An argument is required: either -AppName <name> or -All. Run it with neither and the skill first lists the publications and asks which one to remove.

The skill only touches Apache web publications. Project directories, upload/, databases and sources stay where they are, so don't expect a full cleanup. It runs on Windows and needs PowerShell.

What it helps with

  • cut web access to a 1C database before decommissioning it
  • remove one Apache publication without touching the rest
  • delete every publication and stop Apache in one run
  • strip the publication block from httpd.conf and the publish/ directory
  • list current publications and pick one to remove

Example prompts for the agent

  • remove the bpdemo publication
  • delete web access to the mydb database
  • take down all 1C publications from Apache

How to install web-unpublish

1Plugin marketplace

/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skills

This installs the whole 1c-skills plugin with all its skills

2Skills CLI (Vercel)

npx skills add Nikolay-Shirokov/cc-1c-skills --skill web-unpublish -a claude-code

3Manually: put the files in place

~/.claude/skills/web-unpublish/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/web-unpublish/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about web-unpublish

How do I install web-unpublish in Claude?

Add the marketplace with /plugin marketplace add Nikolay-Shirokov/cc-1c-skills, then install the plugin with /plugin install 1c-skills@cc-1c-skills.

What does web-unpublish do?

It removes a 1C web publication from Apache: the block in httpd.conf and the publish/{appname} directory. If no publications remain, it also removes the global 1C block and stops Apache.

What do I pass when running it?

Either a publication name or the --all flag. With neither, the skill lists the publications and asks which one to delete.

Source text

SKILL.md · MIT
---
name: web-unpublish
description: Удаление веб-публикации 1С из Apache. Используй когда пользователь просит убрать публикацию, удалить веб-доступ к базе
argument-hint: "<appname | --all>"
allowed-tools:
  - Bash
  - Read
  - Glob
  - AskUserQuestion
---

# /web-unpublish — Удаление веб-публикации 1С из Apache

Удаляет блок публикации из `httpd.conf` и каталог `publish/{appname}` внутри Apache. Если других публикаций не осталось — удаляет глобальный блок 1C и останавливает Apache. С флагом `--all` удаляет все публикации разом.

> **Внимание:** этот навык управляет только веб-публикациями в Apache (блоки в `httpd.conf` + каталог `publish/`). Он **НЕ** удаляет каталоги проекта, `upload/`, базы данных или исходники.

## Usage

```
/web-unpublish <appname>
/web-unpublish bpdemo
/web-unpublish --all
```

## Параметры подключения

Прочитай `.v8-project.json` из корня проекта. Если задан `webPath` — используй как `-ApachePath`.
По умолчанию `tools/apache24` от корня проекта.

Если пользователь не указал `appname` и не указал `--all`, выполни `/web-info` чтобы показать список публикаций и спроси какую удалить.

Если пользователь просит удалить **все** публикации — используй `-All`.

## Команда

```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/web-unpublish.ps1" <параметры>
```

### Параметры скрипта

| Параметр | Обязательный | Описание |
|----------|:------------:|----------|
| `-AppName <имя>` | * | Имя публикации |
| `-All` | * | Удалить все публикации |
| `-ApachePath <путь>` | нет | Корень Apache (по умолчанию `tools/apache24`) |

> `*` — нужен либо `-AppName`, либо `-All`

## Примеры

```powershell
# Удалить одну публикацию
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/web-unpublish.ps1" -AppName "bpdemo"

# Удалить все публикации
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/web-unpublish.ps1" -All

# С указанием пути
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/web-unpublish.ps1" -AppName "mydb" -ApachePath "C:\tools\apache24"
```

© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills

Similar skills

SKILL.md skills catalog →

From the same set14

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor