Simple call with all parameters specified.
import RPLib dataOwner = "C:/GIS/GISADMIN@GIS.sde" RPLib.clearworkspacecache(dataOwner)
If Else logic with all parameters specified.
import RPLib dataOwner = "C:/GIS/GISADMIN@GIS.sde" if RPLib.clearworkspacecache(dataOwner): print("successful, run another tool") else: print("failed, run another tool")