@staticmethod
def storage_prefix_path(location, filename):
"""Join the location path with the filename to get the full object path"""
if filename.startswith('.'):
filename = filename[1:]
return '/'.join([location.value, filename])
@classmethod
@storage_args()
def storage_delete_file(cls, filename, storage_location=None, storage_profile=None):
"""Remove file data from storage."""
storage_instance = cls.storage_get_profile(storage_profile)
storage_instance.delete(path=cls.storage_prefix_path(storage_location, filename)) <------- here, storage_location could be None
return True