Delete last useless bytes