removePackage
const url = 'https://example.com/api/v1/packages/example';const options = {method: 'DELETE', headers: {cookie: 'tilecast_session=<tilecast_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/api/v1/packages/example \ --cookie tilecast_session=<tilecast_session>Requires the Owner or Administrator role with the admin scope. Cookie requests additionally require the X-CSRF-Token header. Deletes the installation and its contribution rows. The custom source, when any, survives for reinstall. Audited.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Store package identifier such as countdown_bar.
Header Parameters
Section titled “Header Parameters”Cookie-backed browser requests only, and only on unsafe methods. Bearer grants never send it.
Responses
Section titled “ Responses ”Package removed
Dashboard authentication required
Owner or Administrator role required
Package_not_installed
Package_in_use — contributed content still exists; remaining resources are listed in error.details
A removal, update, or rollback blocked by contributed content the operation would strand. The operation deletes installation state only, never content, so the operator deletes the listed content first.
object
object
The package and the contributed content that blocks the operation.
object
object
Example
{ "error": { "code": "package_in_use" }}