index.php
p is the main template file of the WordPress Theme. But without index.php
will be active your theme but not work any functionality. So, if you want to active/work WordPress functionality then you must have index.php
on your theme, otherwise it will break everything.
Q: Why you need to remove index.php
file ?