SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Database → Remove Column

AI-generated

Overview

This node operation removes a specified column from a SiYuan database (AttributeView block). It is useful for managing the structure of databases within SiYuan by deleting columns that are no longer needed or relevant. For example, if a column in a project management database is obsolete, this operation can remove it to keep the database clean and organized.

Use Case Examples

  1. Removing a column from a task tracking database to eliminate outdated task categories.
  2. Deleting a column from a customer database that is no longer used for data collection.

Properties

Name Meaning
AV ID The AttributeView ID representing the specific database block to operate on. This ID is used to identify the database from which a column will be removed.
Column (Key) ID The ID of the column (key) to be removed from the database. This identifies the specific column targeted for deletion.

Output

JSON

  • success - Indicates whether the column removal operation was successful.

Dependencies

  • Requires SiYuan API URL and API token credentials for authentication.

Troubleshooting

  • Ensure that the provided AV ID corresponds to an existing AttributeView block in SiYuan; otherwise, the operation will fail.
  • Verify that the Column (Key) ID exists in the specified database; attempting to remove a non-existent column will cause an error.
  • Check that the SiYuan API URL and token credentials are correctly set and valid to avoid authentication errors.

Discussion