def METHOD_NAME(source_bot: str):
    """
    Deletes latest log if it is present in enqueued state.
    """
    latest_log = BotReplicationLogs.objects(bot=source_bot).order_by('-id').first()
    if latest_log and latest_log.event_status == EVENT_STATUS.ENQUEUED.value:
        latest_log.delete()