import re


def delete_comments(file_content):
    """Removes all comments from the given string.

    :param str file_content: file content
    :return str: same content without comments
    """
    string_temp = re.sub(r'--.*\n', '', file_content)  # Removing comments
    string_temp = re.sub(r'\n+', ' ', string_temp)  # Replace new line with space
    string_temp = re.sub(r' +', ' ', string_temp)   # Replace >1 spaces with 1 space
    return string_temp