Delete pull request preview
Remove a named preview from every Inspect session linked to the pull request, for example after the preview environment is torn down.
Base URL
DELETE
Remove a named preview from every Inspect session linked to the pull request, for example after the preview environment is torn down.
bearerAuthheader
AuthorizationBearer <token>API key authentication. Use your API key as the bearer token.
owner*stringGitHub repository owner.
Length
1 <= lengthrepo*stringGitHub repository name.
Length
1 <= lengthpull_number*integerPull request number.
Format
int64Range
0 < valuename*stringPreview name chosen by the caller, e.g. default or storybook. Lowercase kebab-case where each segment starts with a letter, at most 64 characters. The default preview is the session's primary preview.
Match
^[a-z][a-z0-9]*(?:-[a-z][a-z0-9]*)*$Length
length <= 64The preview was removed (or did not exist)
curl -X DELETE 'https://your-org.inspect.com/api/public/v1/repositories/string/string/pulls/1/previews/string'Example Response
Empty