Skip to content

deleteSiteFacility

Mutation

Deletes an existing SiteFacility, along with all of its layers.

Response

Returns SiteFacility

Arguments

NameTypeDescription
idID!

The unique identifier of the facility to delete.

Example

mutation deleteSiteFacility(
$id: ID!
) {
deleteSiteFacility(
id: $id
) {
id
name
site {
id
name
timezone
position {
type
coordinates
}
polygon {
type
coordinates
}
devices {
id
uuid
externalId
name
enabled
address
frameRate
transcoderId
lastHeartbeat
}
pointsOfInterest {
id
name
metadata
}
geofences {
id
name
labels
active
}
facilities {
id
name
metadata
}
}
layers {
id
name
facility {
id
name
metadata
}
imageUrl
imageBounds {
type
coordinates
}
geographicBounds {
type
coordinates
}
metadata
}
metadata
}
}