MCPcopy Index your code
hub / github.com/plotly/dash / delete_resource

Method delete_resource

dash/dash.py:2268–2275  ·  view source on GitHub ↗
(resources)

Source from the content-addressed store, hash-verified

2266 self._assets_files.remove(filename)
2267
2268 def delete_resource(resources):
2269 to_delete = None
2270 for r in resources:
2271 if r.get("asset_path") == asset_path:
2272 to_delete = r
2273 break
2274 if to_delete:
2275 resources.remove(to_delete)
2276
2277 if filename.endswith("js"):
2278 # pylint: disable=protected-access

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected