Path: blob/master/src/packages/next/lib/api/schema/projects/delete.ts
1451 views
import { z } from "../../framework";12import { FailedAPIOperationSchema, OkAPIOperationSchema } from "../common";34import { ProjectIdSchema } from "./common";56// OpenAPI spec7//8export const DeleteProjectInputSchema = z9.object({10project_id: ProjectIdSchema,11})12.describe(13`Deletes a specific project. This causes three operations to occur in succession.14Firstly, all project licenses associated with the project are removed. Next, the15project is stopped. Finally, the project's \`delete\` flag in the database is16set, which removes it from the user interface. This operation may be reversed by17restoring the project via the API, with the proviso that all information about18applied project licenses is lost in the delete operation.`,19);2021export const DeleteProjectOutputSchema = z.union([22FailedAPIOperationSchema,23OkAPIOperationSchema,24]);2526export type DeleteProjectInput = z.infer<typeof DeleteProjectInputSchema>;27export type DeleteProjectOutput = z.infer<typeof DeleteProjectOutputSchema>;282930