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.
bearerAuth previews:writeheader
AuthorizationBearer <token>API key authentication. Use your API key as the bearer token.
Scope: previews:write
owner*stringGitHub repository owner.
Length
1 <= lengthrepo*stringGitHub repository name.
Length
1 <= lengthpull_request_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://app.inspect.com/api/v2/repositories/acme/web/pulls/1234/previews/default'Example Response
Empty