MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / remove_project

Method remove_project

scratchattach/site/studio.py:441–453  ·  view source on GitHub ↗

Removes a project from the studio. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_studio` Args: project_id: Project id of the project that should be removed

(self, project_id)

Source from the content-addressed store, hash-verified

439 ).json()
440
441 def remove_project(self, project_id):
442 """
443 Removes a project from the studio. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_studio`
444
445 Args:
446 project_id: Project id of the project that should be removed
447 """
448 self._assert_auth()
449 return requests.delete(
450 f"https://api.scratch.mit.edu/studios/{self.id}/project/{project_id}",
451 headers=self._headers,
452 timeout=10,
453 ).json()
454
455 def managers(self, limit=40, offset=0):
456 """

Callers

nothing calls this directly

Calls 3

jsonMethod · 0.80
_assert_authMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected