if I remove index from array

No, arrays don’t adjust like that, types that do are called are queues and deques. See this