MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / delete_azure_cache

Function delete_azure_cache

web/pgadmin/misc/cloud/azure/__init__.py:826–835  ·  view source on GitHub ↗

Delete specified file from azure cache directory :param file_name: :return:

(file_name)

Source from the content-addressed store, hash-verified

824
825
826def delete_azure_cache(file_name):
827 """
828 Delete specified file from azure cache directory
829 :param file_name:
830 :return:
831 """
832 file = config.AZURE_CREDENTIAL_CACHE_DIR + '/' + file_name
833 # Delete cache file if exists
834 if os.path.exists(file):
835 os.remove(file)

Callers 1

clear_azure_sessionFunction · 0.85

Calls 2

existsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected