Skip to contents

Remove a series from the database. This is permanent. It will fail if the series has other user content or is linked to other series via super_series. It is better to try and remove the series from the app since in the future I will add extra information for if it fails. So, this function is mostly useful in case you are developing some scripts to automate loading data and want to temporarily load a series and then remove it.

Usage

remove_series(
  series_id,
  user_cookie = login_and_get_user_cookie(),
  server_url = Sys.getenv("GXPA_SERVER", "https://geneatlas.redda.bms.com/")
)

Arguments

series_id

the id of the series you want to delete.

the cookie string. Can use login_and_get_user_cookie() to get it. If you don't provide the cookie string, then the function will run login_and_get_user_cookie(). So, if you provide the cookie then it saves one interaction with the server.

server_url

GXPA server (default GXPA_SERVER environment variable or https://geneatlas.redda.bms.com/ if missing)

Value

Invisibly returns the full html output which can be useful in case you didn't get a success message.

See also

Examples

if (FALSE) { # \dontrun{
user_cookie = login_and_get_user_cookie()
tmp <- dry_run_session("X1NBJK", user_cookie = user_cookie)
load_session("X1NBJK", load_type = "upload_new")

# might have to try this line a couple times until the task is finished
all_dat <- get_series_info_from_gxpa()
any(all_dat$name == "GSE00001 : TEST")
series_id = all_dat$id[all_dat$name == "GSE00001 : TEST"]
resp_page = remove_series(series_id, user_cookie)
} # }