Changes
Page history
added all new content
authored
Sep 18, 2024
by
Paul
Hide whitespace changes
Inline
Side-by-side
system/Deleting-Works-with-CLI.md
0 → 100644
View page @
6381bfc3
A work can be deleted from the rails console (of the web container)
```
bash
docker
exec
-it
rdms_web_1 /bin/bash
rails c
```
```
ruby
# delete CRC1280 dataset
crc_dataset_id
=
"<id_of_the_crc_dataset>"
c
=
CrcDataset
.
find
(
crc_dataset_id
)
c
.
delete
```
```
ruby
# delete RUB dataset
dataset_id
=
"<id_of_the_rub_dataset>"
d
=
Dataset
.
find
(
dataset_id
)
d
.
delete
```
\ No newline at end of file