sanitize id parameter
limit file removal inside repository dir.