There is protection implemented to keep the numbers without gaps.
Please go to Setup->Settings->Finance and set to NO Delete estimate allowed only on last estimate and Decrement estimate number on delete.
Repeat the same process for invoices if needed.