Good night community, another random question on m...
# sst
t
Good night community, another random question on my end, hopefully you guys can help me. Is there anyway that SST can also remove the table? The problem comes when I shut down the app either on purpose or by accident, then the next time I do
sst start
it throws up an error saying that the table is already created, so I need to go to DynamoDB and delete it manually. So I was just looking around if there was a setting or something like this, but for the DynamoDB tables:
Copy code
new Bucket(this, "Bucket", {
  s3Bucket: {
    autoDeleteObjects: true,
    removalPolicy: cdk.RemovalPolicy.DESTROY,
  },
});
m
if you're using the
sst.Table
construct there's a key called
dynamoDbTable
where you can set the
removalPolicy
like you did with the bucket
t
Got it, tyvm! 😄