You are viewing documentation about an older version (1.2.0). View latest version

snowflake.snowpark.Session.remove_package¶

Session.remove_package(package: str) → None[source]¶

Removes a third-party package from the dependency list of a user-defined function (UDF).

Parameters:

package – The package name.

Examples:

>>> session.clear_packages()
>>> len(session.get_packages())
0
>>> session.add_packages("numpy", "pandas==1.3.5")
>>> len(session.get_packages())
2
>>> session.remove_package("numpy")
>>> len(session.get_packages())
1
>>> session.remove_package("pandas")
>>> len(session.get_packages())
0
Copy