def METHOD_NAME(self) -> None:
    iago = self.example_user("iago")
    realm = get_realm("zulip")
    playground_id = check_add_realm_playground(
        realm,
        acting_user=iago,
        name="Python playground",
        pygments_language="Python",
        url_template="https://python.example.com{code}",
    )
    self.assertTrue(RealmPlayground.objects.filter(name="Python playground").exists())
    result = self.api_delete(iago, f"/api/v1/realm/playgrounds/{playground_id + 1}")
    self.assert_json_error(result, "Invalid playground")
    result = self.api_delete(iago, f"/api/v1/realm/playgrounds/{playground_id}")
    self.assert_json_success(result)
    self.assertFalse(RealmPlayground.objects.filter(name="Python").exists())