Remove params from document