I want to reset the student previous completed course progress, I am assigning the same course to student again but it is showing the course as already completed.
While re-assigning the course I am setting the location data as 0 or blank but it's taking the location data from LRS and marking the course as completed, course not using my location data that I am giving over AICC get param call.
Depending on what LMS you are using and which standard you're using, the answer to this could be any of the following:
Outside of that, since it's a "re-assignment", that's not a feature of either AICC or SCORM, that's always implemented at the LMS level, and it will be specific to your LMS vendor as to what that word means and how they implement the data storage.
SCORM and AICC work completely differently in these contexts as well, so you'll want to be more specific about: A) Which LMS you're trying to do this on; B) Which exact standard you're using (SCORM 1.2, SCORM 2004, AICC, xAPI, cmi5, etc.)
This is probably a question best sent to your LMS vendor, they're likely to be the ones who can address what the rules around re-assignment are on their own platform.