calendar_resource_management icon indicating copy to clipboard operation
calendar_resource_management copied to clipboard

Deleting stories, buildings - how to?

Open motioncompany opened this issue 1 year ago • 1 comments

Steps to reproduce

I have

Buildings:
+----+------------+-----------------------------------+-------------+-----------------------+
| ID | Name       | Address                           | Description | Wheelchair Accessible |
+----+------------+-----------------------------------+-------------+-----------------------+
| 1  | TSV Places | On the way 1, 12345 Cityline      |	            | no                    |
+----+------------+-----------------------------------+-------------+-----------------------+
Stories:
+----+------------+--------------+
| ID | Located in | Display Name |
+----+------------+--------------+
| 1  | TSV Places | A            |
| 2  | TSV Places | B            |
| 3  | TSV Places | C            |
`+----+------------+--------------+```

calendar-resource:resource:delete

Expected behavior

How to delete stories and/or buildings? Need an example of the correct comand please

Actual behavior

Not enough arguments (missing: "type, resource_id")

App version

v0.6.0

Additional info

No response

motioncompany avatar Feb 14 '24 15:02 motioncompany

The error message clearly states that you have to provide the type and resource_id to be deleted. As the documentation clearly states...

mbrohl avatar Feb 23 '24 12:02 mbrohl

You need to specify the type of resource and its id.

Examples:

  • Delete story with id 1: occ calendar-resource:resource:delete story 1
  • Delete building with id 1 (and all contained stories): occ calendar-resource:resource:delete building 1

st3iny avatar May 29 '24 10:05 st3iny