Delete module
xlide_delete_modulePermanently delete a VBA module from an Office file and save the change. No undo; read the module first so it can be restored if needed.
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. For Excel, the write is refused if the server cannot check whether a shape still calls the module.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the Office file. | |
| module_name | Yes | Module to delete. | |
| allow_protected | No | Permit saving a password-protected VBA project. Set true only after the user agrees. | |
| 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 | Permit saving a change that removes the VBA project's digital signature, where applicable. Set true only after the user agrees. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||