llama-stack-mirror/docs/docs/api/delete-a-prompt.api.mdx
2025-09-23 09:48:43 -07:00

71 lines
No EOL
6 KiB
Text

---
id: delete-a-prompt
title: "Delete a prompt."
description: "Delete a prompt."
sidebar_label: "Delete a prompt."
hide_title: true
hide_table_of_contents: true
api: eJztV8Fu2zgQ/RVCpxZI7DRo0a1v6SaLLTZFgsQ9LNJgMZbGFltK1JKUE8Pwv/cNKcd27BS+BnAupsQZzsyb94bKPHPsG1t79tlgnp2enMhPwT53ugna1tkgu/onWxxl73dtDUtWjv9v2Qf1QF7pekpGF8o6VZEZW1dxkR1lua0D10H8qWmMzkn8+z+8HDLPfF5yRbIKs4ZxrB394DzAsXG2YRd0ys4HCq1fs9M4dsIOhptp/T0cXqtkrXJbsOQfdDC85uuD0/Vky/XCOSQfjY8UKV9aF5Rvq4rcTNmxCqiYo81DqfNS6VS001QHhYIV1d1+jLOQ8wNps2/kZC2hja1Rmyrbiupjx1TQyLBa89lIRyLpGjXX+R5VvrmKKzJv1Zn6dnPZFZMj+RGr1nOhgkVn4c1TVpV1jDKln7Fzika2DTG4bzjXY50rm+etc4zwz/JCYlQUOsW7XmvomIzno0z4ox14MrhbdnjZrSfw7p/6l2B6Abwll9XY2SrmcHb9padubDspzQztMcY+eHXz15/q4x8nH3sCGj9S1SRmLPkFqq/ifaZC3SSKr/LZk/mLhVT//vTTbuXkRkMVqoS7l0WwFs71bHmwnAoiTPSU8VvZFjaCra74IKqDqF6ZqE4/reINwfSvwvROWX5dWv/aFpoAQvyYMxcCm4iNAiujKx166towIaEA9tCEIBKDTdfr9PbhpZvKs5ui+YBTpMSAR4jV1vwIvAOeuIPhIK2DtF6RtD6s31dfhNnIXN0mtq/id/I626b8Eoyip65aMIGpirfSiHHx1DYAMOx18ip4TK0J2xL73cEHUR1E9bpEdbIr2h4SiioRqtHESzUotmpwwd0/z/acDeNKI9VEi54wnRxVeOnEc57VeIBh2v9Pi4i0eDYUyq3i5YLTBQQmYnVL+JOv9LGI4STKCuvgWmC/pbyOL4sFckY6pYVplvxjkog+yPrTd/10uu/Pn1JcwCBds6mE1gleZQjNoN/HhX9cWg/Mjo2hio6Bdf6zl9sqk1CegaAOs+h4vpwyd/eyJ7yLGXYtuRR/dSv+6rZjX2Ql4kvwhMn03Q6YRKx+g7a0LqT1k0NJQSCcAlj/vVbP/jAZOH6Rc100FnPIQ/jxa0U7jByXmFgASyVDyo0pZ58OJcffa2GTdVFm24eP5D8LA+E5miyz+ooxZnxkbAMcMRMEk44mO/i0Ufp8NYF32Xa9D/wY+o3BR5VEie2bdy2/S3h2TcdqsGImWiSdFaP5fISPs2/OLBbyGt93TlqKZZyQI+kfGlxoL+viaQS8mOybm46wb9X+JN9ZTvcSPBSakGnlCcufPNvQ2eIexiWmLa4VyTXtn+U5N2HNc+sa2xDM+cXlxfACKvoFc4kO+Q==
sidebar_class_name: "delete api-method"
info_path: docs/api/llama-stack-specification
custom_edit_url: null
---
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"Delete a prompt."}
>
</Heading>
<MethodEndpoint
method={"delete"}
path={"/v1/prompts/{prompt_id}"}
context={"endpoint"}
>
</MethodEndpoint>
Delete a prompt.
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>
<ParamsDetails
parameters={[{"name":"prompt_id","in":"path","description":"The identifier of the prompt to delete.","required":true,"schema":{"type":"string"}}]}
>
</ParamsDetails>
<RequestSchema
title={"Body"}
body={undefined}
>
</RequestSchema>
<StatusCodes
id={undefined}
label={undefined}
responses={{"200":{"description":"OK"},"400":{"description":"The request was invalid or malformed","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code"},"title":{"type":"string","description":"Error title, a short summary of the error which is invariant for an error type"},"detail":{"type":"string","description":"Error detail, a longer human-readable description of the error"},"instance":{"type":"string","description":"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},"additionalProperties":false,"required":["status","title","detail"],"title":"Error","description":"Error response from the API. Roughly follows RFC 7807."},"example":{"status":400,"title":"Bad Request","detail":"The request was invalid or malformed"}}}},"429":{"description":"The client has sent too many requests in a given amount of time","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code"},"title":{"type":"string","description":"Error title, a short summary of the error which is invariant for an error type"},"detail":{"type":"string","description":"Error detail, a longer human-readable description of the error"},"instance":{"type":"string","description":"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},"additionalProperties":false,"required":["status","title","detail"],"title":"Error","description":"Error response from the API. Roughly follows RFC 7807."},"example":{"status":429,"title":"Too Many Requests","detail":"You have exceeded the rate limit. Please try again later."}}}},"500":{"description":"The server encountered an unexpected error","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code"},"title":{"type":"string","description":"Error title, a short summary of the error which is invariant for an error type"},"detail":{"type":"string","description":"Error detail, a longer human-readable description of the error"},"instance":{"type":"string","description":"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},"additionalProperties":false,"required":["status","title","detail"],"title":"Error","description":"Error response from the API. Roughly follows RFC 7807."},"example":{"status":500,"title":"Internal Server Error","detail":"An unexpected error occurred. Our team has been notified."}}}},"default":{"description":"An unexpected error occurred","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code"},"title":{"type":"string","description":"Error title, a short summary of the error which is invariant for an error type"},"detail":{"type":"string","description":"Error detail, a longer human-readable description of the error"},"instance":{"type":"string","description":"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},"additionalProperties":false,"required":["status","title","detail"],"title":"Error","description":"Error response from the API. Roughly follows RFC 7807."},"example":{"status":0,"title":"Error","detail":"An unexpected error occurred"}}}}}}
>
</StatusCodes>