Navigate to > Account Setup
Now check the "Show only active patients in quick search" check box:
Once this check box is checked the inactive patients will not be displayed only in the quick search list. Although inactive patients will be displayed in the normal search.
To inactivate a patient: check the patient's Account type and inactivate the account type from Manage Data menu:
And check the "Do not bill for this account" check box: