No, a robots. txt file is not required for a website. If a bot comes to your website and it doesn't have one, it will just crawl your website and index pages as it normally would. ... txt file is only needed if you want to have more control over what is being crawled.
What happens if you don't have robots txt?
robots. txt is completely optional. If you have one, standards-compliant crawlers will respect it, if you have none, everything not disallowed in HTML-META elements (Wikipedia) is crawlable. Site will be indexed without limitations.
Can I delete robots txt?
You need to remove both lines from your robots. txt file. The robots file is located in the root directory of your web hosting folder, this normally can be found in /public_html/ and you should be able to edit or delete this file using: FTP using a FTP client such as FileZilla or WinSCP.