Deleting dynamically created array