Delete a phenotype, including all data from a project

phenotype_delete(phenotype, conn = NULL)

Arguments

phenotype

phenotype structure, create or get it using create_phenotype or get_phenotype

conn

Deprecated : gor connection structure, create it using platform_connect

Examples

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)
}