mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
Delete project domains and certificates
This commit is contained in:
parent
536d36be7d
commit
c9f4b7ca23
1 changed files with 11 additions and 0 deletions
|
|
@ -255,6 +255,17 @@ class DeletesV1 extends Worker
|
|||
{
|
||||
$projectId = $document->getId();
|
||||
|
||||
// Delete project domains and certificates
|
||||
$dbForConsole = $this->getConsoleDB();
|
||||
|
||||
$domains = $dbForConsole->find('domains', [
|
||||
Query::equal('projectInternalId', [$document->getInternalId()])
|
||||
]);
|
||||
|
||||
foreach ($domains as $domain) {
|
||||
$this->deleteCertificates($domain);
|
||||
}
|
||||
|
||||
// Delete project tables
|
||||
$dbForProject = $this->getProjectDB($projectId, $document);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue