delete__repo

DELETE /repo/{id}

Delete Repository

Delete a storage repository. For WEB3 users, the repository and associated units are permanently deleted. For other users, the repository is soft-deleted (marked as deleted but not permanently removed).

Parameters

Name
In
Type
Required
Description

id

path

string

true

Repository ID to delete

TypeScript Client Library

public deleteStorageRepo = async (repoId: string): Promise<ActionResponse> => {
  return this.makeRequest<ActionResponse>(`repo/${repoId}`, 'DELETE', null);
};

Code Samples

# You can also use wget
curl -X DELETE https://backend.flashback.tech/repo/{id} \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Example responses

200 Response

{
  "success": true
}

Responses

Status
Meaning
Description
Schema

200

Repository deleted successfully

Inline

403

Insufficient permissions

Inline

404

User or repository not found

Inline

500

Failed to delete repo

Inline

Response Schema

Status Code 200

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Indicates if the request was successful

Status Code 403

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Indicates if the request was successful

» message

string

false

none

Error message

Status Code 404

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Indicates if the request was successful

» message

string

false

none

Error message

Status Code 500

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Indicates if the request was successful

» message

string

false

none

Error message

Last updated

Was this helpful?