Remove Script
remove_scriptDelete a pre-request, post-response, or tests script from a Bruno request while keeping the rest intact. Use to undo or clean up scripts, including duplicate blocks.
Instructions
Delete a pre-request, post-response, or tests script from a Bruno request, leaving the rest of the request intact. Use this to undo or clean up a script written by create_request/modify_request/add_test_script — including duplicate blocks accumulated by appending. Canonical scriptType values are pre-request/post-response/tests; the aliases before-request and after-response are accepted. Removing all scripts also drops the now-empty script container.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scriptType | Yes | Which script to remove. Both .bru and .yml keep the three script types in separate slots, so removal is precise: clearing tests leaves a post-response script in place, and vice versa. | |
| bruFilePath | Yes | Absolute path to the .yml or .bru request file. Get from list_requests or get_collection_stats. |