delete__repo_{id}
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
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}'DELETE https://backend.flashback.tech/repo/{id} HTTP/1.1
Host: localhost:3000
Accept: application/jsonconst headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/repo/{id}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Example responses
200 Response
{
"success": true
}Responses
Response Schema
Status Code 200
» success
boolean
false
none
Indicates if the request was successful
Status Code 403
» success
boolean
false
none
Indicates if the request was successful
» message
string
false
none
Error message
Status Code 404
» success
boolean
false
none
Indicates if the request was successful
» message
string
false
none
Error message
Status Code 500
» success
boolean
false
none
Indicates if the request was successful
» message
string
false
none
Error message
Last updated
Was this helpful?