Delete module
xlide_delete_modulePermanently remove a VBA module from an Office file and save. Requires confirmation and a fresh module read, so you can restore it if deleted by mistake.
Instructions
Permanently deletes a VBA module from an Office file and saves it. There is no undo: ask the user first, and read the module before deleting it so its code can be put back if they change their mind. Document modules cannot be deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the Office file. | |
| module_name | Yes | Module to delete. | |
| allow_protected | No | Ask the user first. | |
| expected_content_token | No | The content_token from your read, so a module that changed since is not deleted on the strength of a stale look at it. | |
| allow_invalidate_signature | No | Ask the user first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||