remove
Removes every assignment of key from dotenv content and returns the new content.
Comments, blank lines and other variables are left untouched. Removing a key that is not assigned returns the content unchanged.
Import
Section titled “Import”Cargo feature env (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
content | &str | The dotenv text to edit. |
key | &str | The variable name to remove every assignment of. |
Returns
Section titled “Returns”String
