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)
| 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 | """ |
nothing calls this directly
no test coverage detected