R/phenotype_services.R
phenotype_delete.Rd
Delete a phenotype, including all data from a project
phenotype_delete(phenotype, conn = NULL)
phenotype structure, create or get it using create_phenotype
or get_phenotype
Deprecated : gor connection structure, create it using platform_connect
if (FALSE) {
api_key <- Sys.getenv("GOR_API_KEY")
project <- Sys.getenv("GOR_PROJECT")
conn <- platform_connect(api_key, project)
name <- "height"
phenotype <- get_phenotype(name, conn)
phenotype_delete(phenotype, conn)
}