Skip to content

Commit a9be183

Browse files
zimegClaude
andauthored
feat(methods): add slackbot.skills.delete method example (#379)
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent c0dfdeb commit a9be183

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎methods/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ $ slack run chat_post_message.py # Make the request
5454
### slackbot
5555

5656
- **[slackbot.skills.create](https://docs.slack.dev/reference/methods/slackbot.skills.create)**: Creates a skill from markdown instructions, or turns an existing canvas the caller owns into a skill. [Implementation](./src/slackbot/skills/slackbot_skills_create.py).
57+
- **[slackbot.skills.delete](https://docs.slack.dev/reference/methods/slackbot.skills.delete)**: Deletes a Slackbot skill and its canvas, and removes it from every library, skill set, and the org catalog. [Implementation](./src/slackbot/skills/slackbot_skills_delete.py).
5758
- **[slackbot.skills.info](https://docs.slack.dev/reference/methods/slackbot.skills.info)**: Returns one Slackbot skill, including its instructions. [Implementation](./src/slackbot/skills/slackbot_skills_info.py).
5859
- **[slackbot.skills.library.add](https://docs.slack.dev/reference/methods/slackbot.skills.library.add)**: Turns a skill on in the caller's personal library. [Implementation](./src/slackbot/skills/library/slackbot_skills_library_add.py).
5960
- **[slackbot.skills.library.remove](https://docs.slack.dev/reference/methods/slackbot.skills.library.remove)**: Turns a skill off in the caller's personal library. [Implementation](./src/slackbot/skills/library/slackbot_skills_library_remove.py).
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import os
2+
3+
from slack_sdk import WebClient
4+
5+
# Read a token from an environment variable
6+
token = os.environ.get("SLACK_TOKEN")
7+
8+
# Initialize
9+
client = WebClient(token=token)
10+
11+
# Call the slackbot.skills.delete method
12+
response = client.slackbot_skills_delete(
13+
skill_id="F0123ABCD",
14+
)
15+
16+
# Inspect the response
17+
print(response)

0 commit comments

Comments
 (0)