If u want to just change the upload directory you can use something like this:
function wp128084_upload_dir( $pathdata ) {
// change path here
return $pathdata;
}
add_filter('upload_dir', 'wp128084_upload_dir');
and again to remove this you can use this
remove_filter('upload_dir', 'wp128084_upload_dir');