def delete_file_from_file_share(file_name, parent_dir):
    """Delete the file from azure file share.

    Args:
        file_name (str): name of the file to delete
        parent_dir (ShareDirectory.from_connection_string): Object of ShareDirectory to perform operations
        on file share.
    """
    __method_name = inspect.currentframe().f_code.co_name
    try:
        parent_dir.delete_file(file_name)
    except ResourceNotFoundError:
        applogger.info(
            "{}(method={}) : {} : No Failed Indicators File Found, filename-{}.".format(
                consts.LOGS_STARTS_WITH,
                __method_name,
                consts.RETRY_FAILED_INDICATORS,
                file_name,
            )
        )
    except Exception as error:
        applogger.error(
            "{}(method={}) : {} : error while deleting checkpoint file, Error : {}.".format(
                consts.LOGS_STARTS_WITH,
                __method_name,
                consts.RETRY_FAILED_INDICATORS,
                error,
            )
        )
        raise DataminrPulseException()
Delete the file from azure file share.

    Args:
        file_name (str): name of the file to delete
        parent_dir (ShareDirectory.from_connection_string): Object of ShareDirectory to perform operations
        on file share.
    
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/RetryFailedIndicators/retry_failed_indicators.py