You can try a tricky method using four queries to make this change.
first query for delete all rows when object value is 5
DELETE FROM sample WHERE objectValues = 5;
second for update rows when is a value is in all places except first and last
UPDATE sample
SET objectValues = REPLACE(objectValues , ',5,', ',');
third when the value 5 is on the first place
UPDATE sample
SET objectValues = LEFT(objectValues, LENGTH(objectValues)-2)
WHERE objectValues LIKE '5,%';
and last query when the value 5 is on the last place
UPDATE sample
SET objectValues = RIGHT(objectValues, LENGTH(objectValues)-2)
WHERE objectValues LIKE '%,5';