rem_sample function

Remove user-specified samples