mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Allow to delete a non opened project
This commit is contained in:
1 file changed
+2
-2
@@ -514,10 +514,10 @@ class Project:
|
||||
except OSError as e:
|
||||
log.warning(str(e))
|
||||
|
||||
@open_required
|
||||
@asyncio.coroutine
|
||||
def delete(self):
|
||||
yield from self.close()
|
||||
if self._status == "opened":
|
||||
yield from self.close()
|
||||
yield from self.delete_on_computes()
|
||||
shutil.rmtree(self.path, ignore_errors=True)
|
||||
|
||||
|
||||
Reference in new issue
Block a user