Delete a project
DELETE
/api/projects/{project}
const url = 'https://app.nurseshark.org/api/projects/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://app.nurseshark.org/api/projects/example \ --header 'Authorization: Bearer <token>'Deletes the project and its notes. This can’t be undone.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project
required
string
Name, slug or UUID of the project.
Responses
Section titled “Responses”Deleted
The token is missing, invalid or expired.
Media typeapplication/json
object
error
required
What went wrong and what to change.
string
errors
For validation failures, the messages for each field.
object
key
additional properties
Array<string>
Example generated
{ "error": "example", "errors": { "additionalProperty": [ "example" ] }}No project with that name, slug or UUID belongs to this account.
Media typeapplication/json
object
error
required
What went wrong and what to change.
string
errors
For validation failures, the messages for each field.
object
key
additional properties
Array<string>
Example generated
{ "error": "example", "errors": { "additionalProperty": [ "example" ] }}The request was understood but can’t be done, for example a value over its limit or a name already in use. error says what to change.
Media typeapplication/json
object
error
required
What went wrong and what to change.
string
errors
For validation failures, the messages for each field.
object
key
additional properties
Array<string>
Example generated
{ "error": "example", "errors": { "additionalProperty": [ "example" ] }}Over the rate limit. Try again in a minute.
Media typeapplication/json
object
error
required
What went wrong and what to change.
string
errors
For validation failures, the messages for each field.
object
key
additional properties
Array<string>
Example generated
{ "error": "example", "errors": { "additionalProperty": [ "example" ] }}