Revert "Revert "delete head""

This reverts commit fd2a5b67eedad69b96d77434cc34e5663df45d38.